2

When I try to execute the .apk file I get the following error *install_failed_missing_shared_library*.

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
user1844638
  • 1,067
  • 3
  • 23
  • 48

2 Answers2

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

Nermeen
  • 15,883
  • 5
  • 59
  • 72
  • Hi now i am getting the following error when i try to execute the .apk file i get the following error install_failed_missing_shared_library. – user1844638 Dec 13 '12 at 08:02
  • 1
    check http://stackoverflow.com/questions/10757116/android-install-failed-missing-shared-library – Nermeen Dec 13 '12 at 08:05
1

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.

Talha
  • 12,673
  • 5
  • 49
  • 68