Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Platform Tools 29: Error retrieving device properties for ro.product.cpu.abi: #33938

Closed
vanlooverenkoen opened this issue Jun 5, 2019 · 143 comments

Comments

Projects
None yet
@vanlooverenkoen
Copy link
Contributor

commented Jun 5, 2019

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)

Steps to Reproduce

  1. Install the latest version of android studio beta on windows (platform tools 29 will be installed)

Logs

[√] 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:
#16865

@brunocerk

This comment has been minimized.

Copy link

commented Jun 5, 2019

Exactly same error here, tried the same things

@vanlooverenkoen

This comment has been minimized.

Copy link
Contributor Author

commented Jun 5, 2019

Did you update your platform tools to 29 as well?

@brunocerk

This comment has been minimized.

Copy link

commented Jun 5, 2019

I updated everything yesterday, there was 3 or 4 tools updates to do, i think platform tools was one of them.
image

@vanlooverenkoen

This comment has been minimized.

Copy link
Contributor Author

commented Jun 5, 2019

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

@brunocerk

This comment has been minimized.

Copy link

commented Jun 5, 2019

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

@SValab

This comment has been minimized.

Copy link

commented Jun 5, 2019

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.

@vanlooverenkoen

This comment has been minimized.

Copy link
Contributor Author

commented Jun 5, 2019

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.
image

this should be in your platform-tools folder
image

THIS IS A TEMPORARY FIX, NOT A SOLUTION

@brunocerk

This comment has been minimized.

Copy link

commented Jun 5, 2019

I prefer going back to my Linux boot where i haven't upgraded it, but thats a nice workaround, thanks for it!

@heinrichreimer

This comment has been minimized.

@vanlooverenkoen

This comment has been minimized.

Copy link
Contributor Author

commented Jun 5, 2019

Aaah nice. I couldn't find the links :D thanks. I updated my comment as well

@heinrichreimer

This comment has been minimized.

Copy link

commented Jun 5, 2019

@brunocerk Downgrading isn't hard.

  1. Navigate to the Android SDK folder.
  2. Remove platform-tools folder.
  3. Unzip downloaded 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
@Martin-P

This comment has been minimized.

Copy link

commented Jun 5, 2019

@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 😉), the folder screenshot in #33938 (comment) can be found at the following location:

C:\Users\[your-username]\AppData\Local\Android\Sdk

(AppData is a hidden folder by default)

@dxdiagmauric

This comment has been minimized.

Copy link

commented Jun 5, 2019

Same problem, fix platform-tools

@intercorps

This comment has been minimized.

Copy link

commented Jun 5, 2019

Its impressive how 2 google projects dont take care of this massive issues in consideration. This workaround works for now...

@kepuza

This comment has been minimized.

Copy link

commented Jun 5, 2019

same problem 5 hour ago

@mccreeper98

This comment has been minimized.

Copy link

commented Jun 5, 2019

@vanlooverenkoen Gracias por esta solución temporal.

Para cualquier persona que no sepa dónde encontrar la platform-toolscarpeta (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

( AppDataEs una carpeta oculta por defecto)

other option windos + r, type %appdata%

aam added a commit to aam/flutter that referenced this issue Jun 5, 2019

Whitelist adb.exe heap corruption exit code.
In android platform tools 29.0.0 adb.exe shell seems to be exiting with heap corruption exit code, otherwise producing results as expected. This PR whitelists this exit code on Windows.

Fixes flutter#33938.
@GuilhermeVendramini

This comment has been minimized.

Copy link

commented Jun 6, 2019

Same problem here.

@PhilParisot

This comment has been minimized.

Copy link

commented Jun 6, 2019

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?

@shamoore

This comment has been minimized.

Copy link

commented Jun 6, 2019

Same issue. did the work around for now but that's inconvenient.

@470772345

This comment has been minimized.

Copy link

commented Jun 6, 2019

thanks~

@jp1017

This comment has been minimized.

Copy link

commented Jun 6, 2019

@tdh8316

This comment has been minimized.

Copy link

commented Jun 6, 2019

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.
image

this should be in your platform-tools folder
image

THIS IS A TEMPORARY FIX, NOT A SOLUTION

Huge thanks!

@Cvilia

This comment has been minimized.

Copy link

commented Jun 6, 2019

saved me!

@jj007force

This comment has been minimized.

Copy link

commented Jun 6, 2019

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.

@meidikawardana

This comment has been minimized.

Copy link

commented Jun 6, 2019

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?

@Sun3

This comment has been minimized.

Copy link

commented Jun 6, 2019

Same error here too.

@ronyef

This comment has been minimized.

Copy link

commented Jun 9, 2019

@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

IT works!

@djensen47

This comment has been minimized.

Copy link

commented Jun 9, 2019

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!

@lewcianci

This comment has been minimized.

Copy link

commented Jun 9, 2019

This shouldn't be closed. Not fixed in stable.

@bharath79

This comment has been minimized.

Copy link

commented Jun 9, 2019

did anyone find the solution for this?

@NurGuz23

This comment has been minimized.

Copy link

commented Jun 9, 2019

If I downgraded to 28.0.2, when use --device, not recognize

@geekydiamond

This comment has been minimized.

Copy link

commented Jun 9, 2019

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.

@wadeziegler

This comment has been minimized.

Copy link

commented Jun 9, 2019

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.

@ZolderonGitHub

This comment has been minimized.

Copy link

commented Jun 9, 2019

that's dasen't work

@brecarv

This comment has been minimized.

Copy link

commented Jun 9, 2019

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.

@16273849

This comment has been minimized.

Copy link

commented Jun 9, 2019

Thanks, Guys. You are Awesome.
This problem ties me up for two weeks.

@jonahwilliams

This comment has been minimized.

Copy link
Contributor

commented Jun 9, 2019

@ilvassa

This comment has been minimized.

Copy link

commented Jun 10, 2019

Tanks for the work around!!!! ...
#33938 (comment)

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.

@shareme

This comment has been minimized.

Copy link

commented Jun 10, 2019

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

@iozuniga

This comment has been minimized.

Copy link

commented Jun 10, 2019

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

@KaranSingh1412

This comment has been minimized.

Copy link

commented Jun 10, 2019

#33938 (comment)
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

@mtb550-KSA

This comment has been minimized.

Copy link

commented Jun 10, 2019

I spent two days in my work to solve this issue... My Guaaaaaaaaaaaaaaaaaaaaaaaaaaaaad.
thanks brothers

@abc123james

This comment has been minimized.

Copy link

commented Jun 11, 2019

After update the platform tools , the problem solved
image

@gapolinaire

This comment has been minimized.

Copy link

commented Jun 11, 2019

I had the same problem. I uninstalled Platform Tools 29 on Android Studio and voilá!!! All working again! Thanks for the post.

@akshay512

This comment has been minimized.

Copy link

commented Jun 11, 2019

@iozuniga

This comment has been minimized.

Copy link

commented Jun 11, 2019

Confirmed. After the update to 29.0.1 y moved to stable channel and everything working.

@clin003

This comment has been minimized.

Copy link

commented Jun 11, 2019

打开Android Studio 根据提示把platform tools 29.0.0升级到29.0.1 就正常啦。

@SaiHtetMyatHtut

This comment has been minimized.

Copy link

commented Jun 11, 2019

@talhashahab

This comment has been minimized.

Copy link

commented Jun 11, 2019

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

@sarahpoehler4

This comment has been minimized.

Copy link

commented Jun 13, 2019

still same issue nothing worked for us. reinstalled everything. nothing works......

Kiku-git added a commit to Kiku-git/flutter that referenced this issue Jun 14, 2019

Whitelist adb.exe heap corruption exit code. (flutter#33951)
* Whitelist adb.exe heap corruption exit code.

In android platform tools 29.0.0 adb.exe shell seems to be exiting with heap corruption exit code, otherwise producing results as expected. This PR whitelists this exit code on Windows.

Fixes flutter#33938.

* Fix condition

* Fix 'shell am start' command

* Fix stop command

* Refactor into runAdbMostlyChecked(Sync/Async)

* runAdbMostlyChecked -> runAdbChecked
@hwqz

This comment has been minimized.

Copy link

commented Jun 17, 2019

Same problem, fix platform-tools

@0xbugs

This comment has been minimized.

Copy link

commented Jun 17, 2019

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.
image

this should be in your platform-tools folder
image

THIS IS A TEMPORARY FIX, NOT A SOLUTION

Same problem, fix platform-tools

@intercorps

This comment has been minimized.

Copy link

commented Jun 19, 2019

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.