我正在尝试使用 com.google.android.gms.maps.MapView
在我的应用程序中。它编译没有问题,但从 Android Studio 启动它时出现以下错误:
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
我已经尝试了 main thread for this question 中的所有内容.
- 我已经安装了Google APIs
- 我的构建目标是 Google APIs (4.0)
- 我有
<uses-library android:name="com.google.android.gms.maps" />
在我的 AndroidManifest.xml 文件的<application>
中标签 - 我的 AVD 使用 Google APIs target
- 我的真实设备有 Google Play 服务 installed and up-to-date
- preview pane of my activity file 中也可以看到错误。
如果我删除 MapView 引用和 <uses-library>
标记,然后应用程序启动。
这涵盖了我可以在该主题上找到的其他线程的所有内容。有谁知道可能导致此错误的其他原因吗?
最佳答案
I have
<uses-library android:name="com.google.android.gms.maps" />
in my AndroidManifest.xml file's<application>
tag
删除它,因为这是你编造的,它就是你困难的根源。 map V1 使用 <uses-library>
元素(具有不同的名称); map V2 没有。
My AVD uses the Google APIs target
模拟器目前不支持 Maps V2。
关于java - 在 Android Studio 中使用 MapView 时 INSTALL_FAILED_MISSING_SHARED_LIBRARY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16657021/