When I try to run my app in an emulator in Android Studio I get the following error. I have to say that it worked before and stopped working after some updates of SDK to v.29. Is there something I have to change now?
Reinstall of android studio and flutter did not work, I tried to kill and restart adb server and disabling heap protection. nothing worked
Error retrieving device properties for ro.product.cpu.abi:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
--------- beginning of main
06-05 20:29:29.366 I/GnssLocationProvider( 1871): WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@c9864b)
Unhandled exception:
Exit code -1073740940 from: C:\Users\Koen\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
#0 _runWithLoggingSync (package:flutter_tools/src/base/process.dart:360:7)
#1 runCheckedSync (package:flutter_tools/src/base/process.dart:289:10)
#2 AndroidDevice.lastLogcatTimestamp (package:flutter_tools/src/android/android_device.dart:517:27)
#3 _AdbLogReader._start (package:flutter_tools/src/android/android_device.dart:697:41)
#4 _runGuarded (dart:async/stream_controller.dart:805:24)
#5 _BroadcastStreamController._subscribe (dart:async/broadcast_stream_controller.dart:213:7)
#6 _ControllerStream._createSubscription (dart:async/stream_controller.dart:818:19)
#7 _StreamImpl.listen (dart:async/stream_impl.dart:472:9)
#8 FlutterDevice.startEchoingDeviceLog (package:flutter_tools/src/resident_runner.dart:318:71)
#9 FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:361:5)
<asynchronous suspension>
#10 HotRunner.run (package:flutter_tools/src/run_hot.dart:253:39)
<asynchronous suspension>
#11 AppDomain.startApp.<anonymous closure> (package:flutter_tools/src/commands/daemon.dart:392:23)
#12 AppDomain.launch.<anonymous closure> (package:flutter_tools/src/commands/daemon.dart:452:26)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _runZoned (dart:async/zone.dart:1516:10)
#17 runZoned (dart:async/zone.dart:1463:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#19 AppInstance._runInZone (package:flutter_tools/src/commands/daemon.dart:822:20)
#20 AppDomain.launch (package:flutter_tools/src/commands/daemon.dart:450:15)
<asynchronous suspension>
#21 AppDomain.startApp (package:flutter_tools/src/commands/daemon.dart:386:12)
<asynchronous suspension>
#22 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:301:38)
<asynchronous suspension>
#23 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:488:18)
#24 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:77:64)
#25 _rootRunUnary (dart:async/zone.dart:1132:38)
#26 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#27 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#28 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#29 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#30 Future._complete (dart:async/future_impl.dart:473:7)
#31 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#32 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:28:18)
#33 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
#34 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#35 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:77:64)
#36 _rootRunUnary (dart:async/zone.dart:1132:38)
#37 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#38 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#39 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#40 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#41 Future._complete (dart:async/future_impl.dart:473:7)
#42 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#43 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async-patch/async_patch.dart:33:20)
#44 _rootRun (dart:async/zone.dart:1124:13)
#45 _CustomZone.run (dart:async/zone.dart:1021:19)
#46 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#47 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#48 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#49 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#50 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)
[√] Flutter (Channel master, v1.5.9-pre.131, on Microsoft Windows [Version 10.0.17134.765], locale nl-BE)
• Flutter version 1.5.9-pre.131 at C:\Users\Koen\Documents\flutter
• Framework revision 38808d9fe4 (5 weeks ago), 2019-05-03 09:48:20 -0700
• Engine revision 1bcbaf73a7
• Dart version 2.3.0 (build 2.3.0-dev.0.5 1577b95c93)
/Error retrieving device properties for ro.product.cpu.abi:
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at C:\Users\Koen\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• Java binary at: C:\Program Files\Android\Android Studio Beta\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio Beta
• Flutter plugin version 36.0.7
• Dart plugin version 191.7830
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b02)
[!] VS Code (version 1.35.0)
• VS Code at C:\Users\Koen\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-arm • Android null (API null)
! Doctor found issues in 1 category.
This did not work:
Exactly same error here, tried the same things
Did you update your platform tools to 29 as well?
I updated everything yesterday, there was 3 or 4 tools updates to do, i think platform tools was one of them.
I was working on a project in Android studio stable. But auto imports are only supported in the Android studio beta. I downloaded the Beta version on my windows. and boom everything was broken. The installation updated the platform sdk to 29
I'm setting up everything to work on Windows, installed Android Studio using JetBrains Toolbox, installed all de SDKs and tools, but when i tried to build on emulator it showed up the error, moved to real device, same thing, then i started looking for solutions
On stable i'm getting the same error after updating to 29. You can do a quick test to see the error using flutter doctor instead of running your project. Just make sure your device is running / connected.
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zip
this download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
I prefer going back to my Linux boot where i haven't upgraded it, but thats a nice workaround, thanks for it!
@vanlooverenkoen You could also just download the platform-tools
folder from official Google servers:
Aaah nice. I couldn't find the links :D thanks. I updated my comment as well
@brunocerk Downgrading isn't hard.
platform-tools
folder.platform-tools
from version 28.0.2, the last version before 29.0.0.On Bash these are the commands you need (run at Android SDK home):
rm -r platform-tools
wget -O platform-tools.zip http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zip
unzip platform-tools.zip
rm platform-tools.zip
@vanlooverenkoen Thanks for this temporary fix.
For anyone who does not know where to find the platform-tools
folder (at least I did not know :wink:), the folder screenshot in https://github.com/flutter/flutter/issues/33938#issuecomment-499250288 can be found at the following location:
C:\Users\[your-username]\AppData\Local\Android\Sdk
(AppData
is a hidden folder by default)
Same problem, fix platform-tools
Its impressive how 2 google projects dont take care of this massive issues in consideration. This workaround works for now...
same problem 5 hour ago
@vanlooverenkoen Gracias por esta solución temporal.
Para cualquier persona que no sepa dónde encontrar la
platform-tools
carpeta (al menos yo no sabía😉), la captura de pantalla de la carpeta en # 33938 (comentario) se puede encontrar en la siguiente ubicación:
C:\Users\[your-username]\AppData\Local\Android\Sdk
(
AppData
Es una carpeta oculta por defecto)
other option windos + r, type %appdata%
Same problem here.
I have the same problem, I'm on the Android Studio stable channel and I rather wait for a fix instead of downgrading. How will we know if a fix is coming to the stable channel? How about the Beta/Dev/Canary Android Studio channels? Or will the fix have to be on the Flutter SDK side?
Same issue. did the work around for now but that's inconvenient.
thanks~
Download http://dl.google.com/android/repository/platform-tools_r28.0.3-windows.zip makes it.
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
Huge thanks!
saved me!
Thank you! Downgrading the platform tools fixed the issue. Hope a newer sdk update or flutter update comes out to fix the issue with version 29.
thank you.. I got problem yesterday and wake up till 3AM trying to solve this problem. now I am curious, how I can file an issue so this issue can be solved by Google's developers?
Same error here too.
same here
Same issue with 29, downgrade to 28 workaround is functional
Please upvote the question so it had a high priority
same is here
I'm starting with Flutter and just got this error. I downgraded to 28 and it worked!
saved me.
Probably androidx app may work I guess..
Have you already tested it with AndroidX?
Just my suggestion not yet tested check this out whether it works or not
https://twitter.com/AthorNZ/status/1134640945020846080
On Thu 6 Jun, 2019, 1:27 PM Van Looveren Koen, notifications@github.com
wrote:
Have you already tested it with AndroidX?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/33938?email_source=notifications&email_token=AKLHDSNQHIEKU77RAJHLI6LPZC7O7A5CNFSM4HUGPLDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCBKAI#issuecomment-499389697,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKLHDSNNNA74DLKTIMWAQATPZC7O7ANCNFSM4HUGPLDA
.
got the same issue , got bored really .
Faced same issue on 28.0.3
Same work around for that too?
flutter doctor -v
[√] Flutter (Channel beta, v1.6.3, on Microsoft Windows [Version 10.0.17763.529], locale en-IN)
• Flutter version 1.6.3 at C:\flutter
• Framework revision bc7bc94083 (2 weeks ago), 2019-05-23 10:29:07 -0700
• Engine revision 8dc3a4cde2
• Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\Android SDK
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = D:\Android SDK
• Java binary at: D:\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at D:\Android Studio
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.6
• Flutter plugin version 33.1.1
• Dart plugin version 182.5215
[√] VS Code (version 1.35.0)
• VS Code at C:\Users\Pratik Singhal\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.1.0
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
@pratik037
Faced same issue on 28.0.3
Same work around for that too?flutter doctor -v [√] Flutter (Channel beta, v1.6.3, on Microsoft Windows [Version 10.0.17763.529], locale en-IN) • Flutter version 1.6.3 at C:\flutter • Framework revision bc7bc94083 (2 weeks ago), 2019-05-23 10:29:07 -0700 • Engine revision 8dc3a4cde2 • Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at D:\Android SDK • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:\Android SDK • Java binary at: D:\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) • All Android licenses accepted. [√] Android Studio (version 3.4) • Android Studio at D:\Android Studio • Flutter plugin version 36.0.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) [√] IntelliJ IDEA Community Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.6 • Flutter plugin version 33.1.1 • Dart plugin version 182.5215 [√] VS Code (version 1.35.0) • VS Code at C:\Users\Pratik Singhal\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.1.0 [!] Connected device ! No devices available ! Doctor found issues in 1 category.
try this -> https://github.com/flutter/flutter/issues/16865#issuecomment-494164445
Even "flutter build apk" is also crashing.
@pratik037
Faced same issue on 28.0.3
Same work around for that too?flutter doctor -v [√] Flutter (Channel beta, v1.6.3, on Microsoft Windows [Version 10.0.17763.529], locale en-IN) • Flutter version 1.6.3 at C:\flutter • Framework revision bc7bc94083 (2 weeks ago), 2019-05-23 10:29:07 -0700 • Engine revision 8dc3a4cde2 • Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at D:\Android SDK • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:\Android SDK • Java binary at: D:\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) • All Android licenses accepted. [√] Android Studio (version 3.4) • Android Studio at D:\Android Studio • Flutter plugin version 36.0.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) [√] IntelliJ IDEA Community Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.6 • Flutter plugin version 33.1.1 • Dart plugin version 182.5215 [√] VS Code (version 1.35.0) • VS Code at C:\Users\Pratik Singhal\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.1.0 [!] Connected device ! No devices available ! Doctor found issues in 1 category.
try this -> #16865 (comment)
Sadly That solution didn't work.
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
i downgraded using this link but there is no .bat files in platform-tools folder
I also encountered this problem.
hybrayhem38 -> This was indeed another download link. If you just replace the content with your download it should work
hybrayhem38 -> This was indeed another download link. If you just replace the content with your download it should work
I downloaded rar and its files:
what is wrong? where is bat files?
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
Can you upload your "platform-files" folder to google drive or etc.?
@hybrayhem38
Try this (if you using windows).
@vanlooverenkoen
Thank you for your fix. It works!
@hybrayhem38
Try this (if you using windows).
- Download http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
- Close Android Studio
- Open command prompt & run this >> taskkill /f /im adb.exe
- Move old platform-tools folder somewhere else (as a backup).
- Extract platform-tools_r28.0.2-windows.zip to old path
- Open Android Studio and it should work again
@vanlooverenkoen
Thank you for your fix. It works!
Thanks, I didnt do step 3 at first. Now it works!
I also have the same issue.
@vanlooverenkoen Thanks for bringing up! While waiting for flutter team fix, temporary fix works well!
Workaround worked... thank you!
Tank you for da tamporary Fix brada
Same issue. Huge thanks!
I don't know if I'm the only one, but I find myself spending an extraordinary amount of time getting Flutter and Android Studio emulator to work on a fairly regular basis. It's really killing the productivity promise of Flutter.
Have you already tested it with AndroidX?
AndroidX also got this problems
I don't know if I'm the only one, but I find myself spending an extraordinary amount of time getting Flutter and Android Studio emulator to work on a fairly regular basis. It's really killing the productivity promise of Flutter.
Very true. But i guess flutter is still fairly new and these bugs can be forgiven. Future still bright.
唉~无语了...
本来正写的好好的,莫名其妙的就出现这个问题,突然就不能运行了....Error retrieving device properties for ro.product.cpu.abi: 而且在中文网站上现在还找不到解决方案....
I don't know if I'm the only one, but I find myself spending an extraordinary amount of time getting Flutter and Android Studio emulator to work on a fairly regular basis. It's really killing the productivity promise of Flutter.
我也这样认为的....但是我仍然很看好Flutter
since yesterday i got this problem and until now i'm unable to fix. here is my flutter doctor -v
`[√] Flutter (Channel beta, v1.6.3, on Microsoft Windows [Version 10.0.17134.765], locale en-US)
• Flutter version 1.6.3 at E:flutter
• Framework revision bc7bc94083 (2 weeks ago), 2019-05-23 10:29:07 -0700
• Engine revision 8dc3a4cde2
• Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2)
Checking Android licenses is taking an unexpectedly long time...Error retrieving device properties for ro.product.cpu.abi:
[√] Android toolchain - develop for Android devices (Android SDK
version 28.0.3)
• Android SDK at C:UsersVivekAppDataLocalAndriodsdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:UsersVivekAppDataLocalAndriodsdk
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] VS Code, 64-bit edition (version 1.34.0)
• VS Code at C:Program FilesMicrosoft VS Code
• Flutter extension version 2.23.0
[√] Connected device (1 available)
• MI MAX 2 • 192.168.1.100:5555 • android-arm • Android null (API null)
• No issues found!
`
@hybrayhem38
Try this (if you using windows).
- Download http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
- Close Android Studio
- Open command prompt & run this >> taskkill /f /im adb.exe
- Move old platform-tools folder somewhere else (as a backup).
- Extract platform-tools_r28.0.2-windows.zip to old path
- Open Android Studio and it should work again
@vanlooverenkoen
Thank you for your fix. It works!Work on me thx
Error retrieving device properties for ro.product.cpu.abi:
How to fix this issue?
@hybrayhem38
Try this (if you using windows).
- Download http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
- Close Android Studio
- Open command prompt & run this >> taskkill /f /im adb.exe
- Move old platform-tools folder somewhere else (as a backup).
- Extract platform-tools_r28.0.2-windows.zip to old path
- Open Android Studio and it should work again
@vanlooverenkoen
Thank you for your fix. It works!
Is this a permanent and actually solution?
@kavinraju the sollution is located in one of the first comments. And @aam has merged a pr
Will the fix be pushed on the Stable branch?
Thanks a lot, the issue is fixed. :)
After the upgrade adb.exe would keep crashing non stop.
Downgrading platform tools to 28.0.2 saved me! What a scare!
Thanks, was suffering from this since morning. finally resolved. Big thanks :)
Hi! Did anyone try adb.exe v 28.0.3?
I just ran into this. Thanks for the solutions above! Fortunately, I didn't have to spend much time on it thanks to the solutions and comments here in the last 24 hours.
One comment regarding emulator performance caught my eye, because i had some performance issues in the beginning too. I am using _Windows_ and I was developing with _Flutter_ on a beefy laptop, but it wasn't enough. I experienced difficulty keeping the emulators running, rebooting etc.
My unsolicited advice? Get a powerful workstation if you can and you will love developing in _Flutter_ again. This is what I replaced my laptop with a month ago and it changed my Flutter dev life immediately. :)
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz, 3192 Mhz, 6 Core(s), 12 Logical Processor(s)
_Installed Physical Memory (RAM) 32.0 GB
Total Physical Memory 31.8 GB
Available Physical Memory 20.3 GB
Total Virtual Memory 57.9 GB
Available Virtual Memory 41.9 GB
Page File Space 26.1 GB_
_Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes_
Same here, flutter doctor shows the issue:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.503], locale en-GB)
Checking Android licenses is taking an unexpectedly long time...*Error retrieving device properties for ro.product.cpu.abi:*
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.4)
[√] VS Code (version 1.35.0)
[√] Connected device (1 available)
• No issues found!
@shariful2011 wrote:
Same here, flutter doctor shows the issue:
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.503], locale en-GB)
The fix for this landed on master branch of flutter only at this point, will take time to percolate through the (dev/beta/stable) channels per https://github.com/flutter/flutter/wiki/Release-process.
Your options as things stand right now are either to switch to master channel of flutter or go back to 28.0.2 of android platform tools as folks suggested above (https://github.com/flutter/flutter/issues/33938#issuecomment-499250288)
thanks @aam, after I changed my channel the issue solved. Now I have 1.7.3-pre31
Error I am getting when running flutter doctor
Just had the same problem. Downgrading to 28 fix it.
So, to sum up (https://github.com/flutter/flutter/issues/33938#issuecomment-499670279):
flutter channel master
flutter doctor
🎉
it works thanks to all.
Here are some more details on the issue and the fix that landed:
Underlying problem is that in recently released platform-tools 29.0.0 adb.exe shell ...
, that flutter uses on Windows, returns "heap corruption" -1073740940 (0xc0000374) exit code on every invocation.
Normally flutter expect 0 exit code indicating successful completion of the adb.exe shell
command, so non-zero exit code stops flutter tools early on in application compilation/deployment process.
The fix https://github.com/flutter/flutter/pull/33951 makes flutter to ignore this error code as adb.exe seems to be doing all the right things(except of the setting exit code to 0).
Switching to master did not work. Downgrade sdk did not work. Problems over problems.
Switching to master did not work. Downgrade sdk did not work. Problems over problems.
Got this problem just now. Solved by downloading http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
and replacing
Make sure you restarted vscode / command prompt
I tried to replace platform tools. Nothing changed. I am using Android Studio.
i replace platform tools: 28.0.1, 28.0.2 and 28.0.3... try to restart ADB: adb kill-server and adb start-server
NOTHING IS CHANGE! flutter run dont GO for the first problem here up!!! flutter doctor tell me:
"Checking Android licenses is taking an unexpectedly long time...-Error retrieving device properties for ro.product.cpu.abi:"
NOW I finish all my idea!
thank
Francyfre
@sarahpoehler4 try run through command prompt/terminal with flutter doctor -v and flutter run on your project folder. If that solves, try clean generated files/folder from your project with flutter clean or deleting .gradle folder
I tried to replace platform tools. Nothing changed. I am using Android Studio.
If this was the only error you a having then the solutions should fix it.
Are you still getting THE SAME error?
Did you close android studio before replacing the platform tools folder, or atleast restart after?
Running flutter clean in terminal helps.
Post your error report
when i run project, from flutter run on CMD... system give me this error:Error retrieving device properties for ro.product.cpu.abi:
after finish with same error upstairs here!
I did git pull(if you are far behind from version), flutter channel master and flutter doctor, problem solved. Try these 3.
probably yess... why is need to change branch?
because stable branch needs some times so that's why change to latest master.
@shariful2011 you HAVE REASON... i solve my problem!!
repeat for all:
_cmd on Flutter folder
_git pull
_flutter channel master
_flucter doctor
and all problem is solved!! thankSoMuch @shariful2011
after switching to flutter master I get this error:
bash: /c/Users/flutter/bin/flutter: No such file or directory
https://github.com/flutter/flutter/issues/33938#issuecomment-499841930 worked for me. Thanks!
i had the same problem.
After i only changed the channel to master without downgrading platform tools to v28, it also works fine.
(the default channel was origin, i think...)
after switching to master the flutter directory isnt ascertainable.
I had an issues when I updated Android Studio but the work around https://github.com/flutter/flutter/issues/33938#issuecomment-499250288 worked for me
after switching to master the flutter directory isnt ascertainable.
-> well.. you can change it again from master to stable..
no I can't. bash: /c/Users/flutter/bin/flutter: No such file or directory
After the webview issue now this issue...
Thank you guys 👍 for saving me.
I was about to go crazy, tried everything from upgrading Platform to reinstalling Android Studio....
Now, I receive a msg that Android SDK Platform-tools are ready to be upgraded. :) Guess we should ignore this until further notice from the flutter team about the permanent fix.
Its worked ! I am used platform-tools_r28.0.2-windows
Thanks!
Thanks a lot)
Downgrading to r28.0.2 fixed my problem. Thanks a lot..
i had the same problem.
After i only changed the channel to master without downgrading platform tools to v28, it also works fine.
(the default channel was origin, i think...)
Thanks.. It's works for me too..
It's works for me too. Thank you.
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
this is not working
i just want to know that how may i suppose to notify whether i should update my android studio or not in future or i always stick to the same version even the updates are available.
@Akash4097
update android studio does not create the problem
but after updating android studio you need to manually downgrade platform tools and never update it until google fix it
hey @bhavikvashi1804 that means i need to do these solution manually until google fix it
@Akash4097
Yes but It works with latest version just changing platform tools downgrading
@bhavikvashi1804 ok thanks for the help
Its impressive how 2 google projects dont take care of this massive issues in consideration. This workaround works for now...
..and this when they are planning to support Fuchsia OS with Flutter
@shariful2011 you HAVE REASON... i solve my problem!!
repeat for all:
_cmd on Flutter folder
_git pull
_flutter channel master
_flucter doctorand all problem is solved!! thankSoMuch @shariful2011
Yes ! Works for me !
EDIT: I wrote a detailed guide on how to fix this issue here: https://medium.com/@lewwybogus/fixing-that-adb-error-when-you-try-to-deploy-using-flutter-ab479937df02?source=friends_link&sk=538df558221cf53e152384ba0e008a19
Just to chime in briefly on this, I'm moving to Flutter from Xamarin Forms because of the sheer amount of builds breaking in XF and there not being any way to debug what broke and why. Having platforms straight up break flutter deployments is scary for me, and reminds me of the painful workflow I left when working with XF :(.
Downgrading platform tools seemed to help though.
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
It works for me. Thanks a lot.
thank you , no more automatic updates!
it's worked!
how come am getting an error and the "flutter doctor" reports no issues found :
am still having the same problem I've tride all the solutions but nun of them worked for me what to do plz help?!
@shariful2011 you HAVE REASON... i solve my problem!!
repeat for all:
_cmd on Flutter folder
_git pull
_flutter channel master
_flucter doctorand all problem is solved!! thankSoMuch @shariful2011
IT works!
I originally posted this is not a great experience for new developers coming to Flutter for the first time. However, the team was quick to address it. However, that fix is not in the latest download on the main Flutter site.
After switching to flutter channel master
now flutter doctor
asks me to download Visual Studio (not VS Code, the other one)
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Is this a new requirement to run Flutter?
Update: I just ignored the message and it works fine.
BTW, Flutter is great, I'm excited to use it, and the Flutter team is doing great!
This shouldn't be closed. Not fixed in stable.
did anyone find the solution for this?
If I downgraded to 28.0.2, when use --device, not recognize
This is probably impacting every flutter developer on Windows yet still no fix on stable. Please could we either have stable fixed or an explaination why this shouldn’t be an emergency fix?
This gives a terrible impression of the stability of flutter and could impact developer adoption of it.
The platform-tools_r28.0.2 fix worked for me too, but there really should be an emergency fix for this. Flutter stability has been an ongoing issue for me. Code keeps breaking with updates even after the beta period was finished.
that's dasen't work
I did git pull(if you are far behind from version), flutter channel master and flutter doctor, problem solved. Try these 3.
Thanks bro, it works fine.
Thanks, Guys. You are Awesome.
This problem ties me up for two weeks.
Tanks for the work around!!!! ...
https://github.com/flutter/flutter/issues/33938#issuecomment-499250288
It was affecting both Windows and Linux enviroments for days... But it's bugging me that I've tried downgrading flutter and android sdk but for some reason it didn't work.... and now yes....
Now I'll wait for the real fix.
for easy way someone is keeping track and storing things on github https://github.com/awake558/adb-win
so makes it easy for manually installing and fixing
repeat for all:
_cmd on Flutter folder
_git pull
_flutter channel master
_flucter doctor
It worked for me too! BTW, I also runned 'flutter upgrade' after 'flutter doctor'.
I look forward to switch back again to the stable channel
https://github.com/flutter/flutter/issues/33938#issuecomment-499854134
This steps seem to work very good,
Just launch to your flutter where you have installed it and write these commands to make it work;
git pull
flutter channel master
flutter doctor
just to repeat again
I spent two days in my work to solve this issue... My Guaaaaaaaaaaaaaaaaaaaaaaaaaaaaad.
thanks brothers
After update the platform tools , the problem solved
I had the same problem. I uninstalled Platform Tools 29 on Android Studio and voilá!!! All working again! Thanks for the post.
This is fixed now as we got a new update for platform tools 29.0.0 to 29.0.1
On Tue 11 Jun, 2019, 12:10 PM gapolinaire, notifications@github.com wrote:
I had the same problem. I uninstalled Platform Tools 29 on Android Studio
and voilá!!! All working again! Thanks for the post.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/33938?email_source=notifications&email_token=AKLHDSPP7NZXZ4CXKLLNNMTPZ5CHDA5CNFSM4HUGPLDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMDEEA#issuecomment-500707856,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKLHDSJFMKJFEQY4AP2X6HDPZ5CHDANCNFSM4HUGPLDA
.
Confirmed. After the update to 29.0.1 y moved to stable channel and everything working.
打开Android Studio 根据提示把platform tools 29.0.0升级到29.0.1 就正常啦。
Thank you guys
On Jun 11, 2019 6:17 PM, "白菜林" notifications@github.com wrote:
打开Android Studio 根据提示把platform tools 29.0.0升级到29.0.1 就正常啦。
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/33938?email_source=notifications&email_token=AG4CRCV67KW63JT4W7TFCVTPZ6GGDA5CNFSM4HUGPLDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXM3ASI#issuecomment-500805705,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG4CRCSID5O6W7NSGCVVBSLPZ6GGDANCNFSM4HUGPLDA
.
I sloved this problem please update your sdk in android studio click tools then click sdk manger then sdk tool and here update your sdk then run your app then it will be install in your device
still same issue nothing worked for us. reinstalled everything. nothing works......
Try install platform-tools version 29.0.1 :+1:
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r29.0.1-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r29.0.1-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r29.0.1-linux.zip
Same problem, fix platform-tools
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zipthis download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION
Same problem, fix platform-tools
New issue today running any flutter app:
[+24892 ms] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
[ ] > More than one file was found with OS independent path 'lib/x86/libflutter.so'
Unhandled exception:
Exit code -1073740940 from: C:UsershpAppDataLocalAndroidSdkplatform-toolsadb.exe -s emulator-5554 shell -x logcat -v time -t 1
Exited (255)
please i have tried everything but none of it worked
i tried installing platform tools 28
i tried google everything i could but i couldnt get any solutions
Error retrieving device properties for ro.product.cpu.abi:
Launching libmain.dart on Android SDK built for x86 in debug mode...
--------- beginning of main
07-16 18:58:54.697 I/DeviceStateChecker( 2713): DeviceStateChecker cancelled
Unhandled exception:
Exit code -1073740940 from: C:UsershpAppDataLocalAndroidSdkplatform-toolsadb.exe -s emulator-5554 shell -x logcat -v time -t 1
Exited (255)
@gmanonline504 https://github.com/flutter/flutter/issues/33938#issuecomment-501903862
try version 29
@vanlooverenkoen You could also just download the
platform-tools
folder from official Google servers:
This works!!!!!!!!!!!!!! Thnaks
For those still having this problem, try USB for file transfer instead of USB for charging or anything else. That did the trick for me.
@joaomarcos96 Thanks. worked for me almost instantly
I was trying things out and doing this (comment) and this (comment) solved it!
Many thanks!
Most helpful comment
I found a temporary fix while we wait for a solution provided by the Flutter team
Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zip
this download contains the platform tools for 28.0.1
if you back up your platform-tools folder and place the content of the zip in the platform-tools folder.
this should be in your platform-tools folder
THIS IS A TEMPORARY FIX, NOT A SOLUTION