Android Genymotion 模拟器:安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20635134/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:11:14  来源:igfitidea点击:

Genymotion Emulator : Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

androidgenymotion

提问by isra60

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

我有一个使用 Google Maps API V1 的项目。所以我需要在我的清单中使用 follow 标签

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

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

问题是当我尝试在 Genymotion 模拟器上运行时。我收到这个错误

        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.

当我删除 uses-library 标签时,我可以运行我的项目,但是我的活动中使用了谷歌地图 api 时出现了其他错误。

What can i do??

我能做什么??

Thanks

谢谢

回答by hcpl

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.

我相信他们放弃了 Google Apps 选项,您现在必须使用以下链接中的 apk 文件手动安装它。您可以将它们放在 VM 上,然后它们就会被安装。

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:

1) 下载以下 ZIP:

ARM 翻译安装程序 Android 6.0 - https://mega.nz/#!p4lFlCZR!TFsb8dMqNdAJjKoCDPDDvNtcQdEB0-KkVlTgQVwG20s

为您的 Android 版本下载正确的 GApp:

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

适用于 Android 4.3 的 Google Apps 的更新链接是(以下链接已损坏)https://www.androidfilehost.com/?fid=23060877490000124

thanks to user @SAM for the update

感谢用户@SAM 的更新

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!

适用于 Android 4.3 的 Google Apps - http://goo.im/gapps/gapps-jb-20130813-signed.zip

适用于 Android 4.2 的 Google Apps - http://goo.im/gapps/gapps-jb-20130812-signed.zip

适用于 Android 4.1 的 Google Apps - http://goo.im/gapps/gapps-jb-20121011-signed.zip

2) 接下来打开您的 Genymotion VM 并转到主屏幕

3) 现在将 Genymotion-ARM-Translation.zip 拖放到 Genymotion VM 窗口。

4)它应该说“文件传输正在进行”,一旦它要求你刷它点击“确定”

5) 现在使用 ADB 或 ROM Toolbox 之类的应用程序重新启动您的虚拟机。如果需要,您可以简单地关闭 VM 窗口,但我不建议这样做。

6)再次进入主屏幕后,将gapps-jb-20130813-signed.zip(或您获得的任何版本)拖放到您的VM上,然后在询问时单击“确定”

7) 完成后,再次重新启动您的 VM 并打开 Google Play 商店。使用您的 Google 帐户登录

8)进入商店后,转到“我的应用程序”菜单并让所有内容更新(修复了很多问题)

9) 现在尝试搜索“Netflix”和“Google Drive”

10) 如果这两个应用程序都出现在结果中并且您能够下载/安装它们,那么恭喜您现在拥有 ARM 支持和 Google Play 完全设置!

回答by Robert C

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.

在 Genymotion 模拟器的右上角,电池选项上方有一个 Open GAPPS 按钮。单击它会提示您安装 Open GAPPS。

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

安装并重新启动模拟器后,您就可以安装您的应用程序了。

回答by SAM

Go with @hcpl answer. I am only updating links to required libraries.

和@hcpl 一起回答。我只更新所需库的链接。

1) Download the following ZIPs: ARM Translation Installer Android 6.0 - https://mega.nz/#!p4lFlCZR!TFsb8dMqNdAJjKoCDPDDvNtcQdEB0-KkVlTgQVwG20s

1) 下载以下 ZIP:ARM Translation Installer Android 6.0 - https://mega.nz/#!p4lFlCZR!TFsb8dMqNdAJjKoCDPDDvNtcQdEB0-KkVlTgQVwG20s

2) Download the correct GApps for your Android version: Google Apps for Android 4.3 - https://www.androidfilehost.com/?fid=23060877490000124

2) 为您的 Android 版本下载正确的 GApp:适用于 Android 4.3 的 Google Apps - https://www.androidfilehost.com/?fid=23060877490000124

Kindly let me know in case of issue.

如有问题,请告诉我。