gpt4 book ai didi

android - Genymotion 中的 INSTALL_FAILED_MISSING_SHARED_LIBRARY

转载 作者:太空狗 更新时间:2023-10-29 14:17:30 25 4
gpt4 key购买 nike

我正在 android 中开发一个基于检测用户位置并显示他周围地点的小应用程序。

我开发了应用程序,但现在我想在 Genymotion 模拟器中试用它。

我发现 Genymotion 模拟器已经安装了 Google API,我还安装了 com.android.vending.apk 和 com.google.android.gms.apk。

但当我尝试安装我的应用程序时,它仍然显示 INSTALL_FAILED_MISSING_SHARED_LIBRARY。

我不知道为什么会这样?

最佳答案

要克服 Google Maps for Android 的 INSTALL_FAILED_MISSING_SHARED_LIBRARY 错误:

  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 (Android Virtual Device) in Eclipse Windows/Android SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: Google APIs (Google Inc.) - API Level X)

    IMPORTANT : You must create your AVD with Target as Google APIs (Google Inc.) otherwise it will again failed.

  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.

  6. Run Project as Android Application.

关于android - Genymotion 中的 INSTALL_FAILED_MISSING_SHARED_LIBRARY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20537134/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com