Android adb error message: error while loading sha

2019-09-21 12:17发布

问题:

I've been trying to execute the simple hello world app from http://developer.android.com/training/basics/firstapp/running-app.html#Emulator via an emulator and I'm getting this error:

  • /<my path>/platform-tools/adb: cannot execute binary file

when trying to do:

  • adb install bin/MyFirstApp-debug.apk

I followed this: Eclipse Android Plugin -- libncurses.so.5 with no success. This is my very first android build and I'm doing it from the command line on Ubuntu 64.

回答1:

Have you checked the jdk version? From cmd type java -version. Also verify you got the right sdks installed in the sdk manager for the emulator image. For instance if your pointing to api 4.1 you need that and associated tools installed to run it in the emulator. If it gets funky go to your .android (not sure on ubuntu) folder and clear out the avd emulator cache and relaunch and recreate the avd. I could be off track because your not using windows and also using the cmd line.



回答2:

After executing this command 'sudo apt-get install ia32-libs' in terminal, it solve my problem, thanks



标签: android adb