问题
When I try to execute the .apk file I get the following error *install_failed_missing_shared_library*.
回答1:
Hi try this website its really helpfull.
http://3zwireless.com/Android1.html
回答2:
in your command prompt cd to the path of the adb (navigate to your SDK's platform-tools/ directory) and then execute the command
adb -d install path/to/your/app.apk
ex:
adb -d install C:/Users/users2/Desktop/adt-bundle-windows-x86/sdk/tools/my.apk
check http://developer.android.com/tools/building/building-cmdline.html#RunningOnDevice
回答3:
First Execute the emulator.
Then Run -> type cmd, and move to the platform-tools folder of SDK directory. (Typically C:\Program Files\Android\android-sdk\platform-tools
).
Paste the APK
file in the platform-tools
folder.
Then type the following command.
adb install [apk file name]
Example:
adb install my.apk
回答4:
- Start the emulator.
- Now Start the console (in Windows Platform), Run -> type cmd, and move to the platform-tools folder of SDK directory.
Paste the APK file in the 'platform-tools' folder.
Then type the following command.
adb install [apk file name]
example:
adb install appname.apk
回答5:
You need to add adb folder to environment variable or use script like below
goto there -> cd C:/ Users/users2\Desktop\adt-bundle-windows-x86\sdk\tools.
C:/ Users/users2\Desktop\adt-bundle-windows-x86\sdk\tools\ when you are in the folder
C:.....your sdk folde...\platform-tools\adb install fileName.apk
To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps for Android:
1) Install Google map APIs. This can be done in Eclispe Windows/Android SDK and AVD Manager -> Available Packages -> Third Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API X
2) From command line create new AVD. This can be done by listing targets (android list targets), then android create avd -n new_avd_api_233 -t "Google Inc.:Google APIs:X"
3) Then create AVD in Eclipse Windows/Android SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: Google APIs (Google Inc.) - API Level X)
4) Create Android Project in Eclipse File/New/Android Project and select Google APIs Build Target.
5) add < uses-library android:name="com.google.android.maps" /> between < application> < /application> tags.
5) Run Project as Android Application.
If error persists, then you still have problems, if it works, then this error is forever behind you.
来源:https://stackoverflow.com/questions/13855334/not-able-to-install-apk-file