Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Genymotion Emulator : Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

I have a project with V1 of Google Maps API. So i need the follow tag in my manifest

         <uses-library android:name="com.google.android.maps" />

The problem is when i try to run on a Genymotion emulator. I received this error

        Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

When i remove the uses-library tag I can run my project but then i have other error in my activity that uses google maps api.

What can i do??

Thanks

like image 558
isra60 Avatar asked Dec 17 '13 13:12

isra60


2 Answers

I believe they dropped the Google Apps option and you have to install it manually now with the apk files from the following link. You can just drop them on the VM and they'll be installed.

original source

This is a good tutorial. Check this link for the up to date location of these zipped files. The links in the step by step below might be broken.

step by step

Just a quote of the required steps. Check the previous link for up to date info in case these links are be broken.

1) Download the following ZIPs:

ARM Translation Installer Android 6.0 - https://mega.nz/#!p4lFlCZR!TFsb8dMqNdAJjKoCDPDDvNtcQdEB0-KkVlTgQVwG20s

Download the correct GApps for your Android version:

UPDATED link for Google Apps for Android 4.3 is (the ones below are broken) https://www.androidfilehost.com/?fid=23060877490000124

thanks to user @SAM for the update

Google Apps for Android 4.3 - http://goo.im/gapps/gapps-jb-20130813-signed.zip

Google Apps for Android 4.2 - http://goo.im/gapps/gapps-jb-20130812-signed.zip

Google Apps for Android 4.1 - http://goo.im/gapps/gapps-jb-20121011-signed.zip

2) Next Open your Genymotion VM and go to the Homescreen

3) Now Drag&Drop the Genymotion-ARM-Translation.zip onto the Genymotion VM window.

4) It should say "File transfer in progress", once it asks you to flash it click 'OK'

5) Now Reboot your VM using ADB or an app like ROM Toolbox. If nescessary you can simply close the VM window, but I don't recommend it.

6) Once you're on the Homescreen again Drag&Drop the gapps-jb-20130813-signed.zip(or whatever version you got) onto your VM, and click 'OK' when asked

7) Once it finishes, again Reboot your VM and open the Google Play Store. Sign in using your Google account

8) Once in the Store go to the 'My Apps' menu and let everything update(fixes a lot of issues)

9) Now try searching for 'Netflix' and 'Google Drive'

10) If both apps show up in the results and you're able to Download/Install them, then congrats you now have ARM support and Google Play fully setup!

like image 157
hcpl Avatar answered Sep 18 '22 07:09

hcpl


In the upper right corner of the Genymotion emulator, there is an Open GAPPS button above the battery option. Clicking that will prompt you to install Open GAPPS.

Once it's installed and the emulator is rebooted, you can install your app.

like image 42
Robert C Avatar answered Sep 20 '22 07:09

Robert C