gpt4 book ai didi

Java安装错误: INSTALL_FAILED_MISSING_SHARED_LIBRARY maps

转载 作者:行者123 更新时间:2023-12-02 07:39:09 25 4
gpt4 key购买 nike

我下载了一个 Android map 应用程序,并尝试成功运行该应用程序。然而,当我构建并运行时,我在这里遇到了错误。

--my manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.shawnbe.mallfinder"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<activity
android:label="@string/app_name"
android:name=".MallFinderActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:required="true" android:name="com.google.android.maps" />
</application>
<uses-feature android:name="android.hardware.location.gps"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>


//logcat error
08-04 16:55:34.492: E/PackageManager(59): Package com.shawnbe.mallfinder requires unavailable shared library com.google.android.maps; failing!
08-04 16:55:34.492: W/PackageManager(59): Package couldn't be installed in /data/app/com.shawnbe.mallfinder.apk



[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] ------------------------------
[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] Android Launch!
[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] adb is running normally.
[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] Performing com.shawnbe.mallfinder.MallFinderActivity activity launch
[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'MAPAPP1'
[2012-08-04 12:00:34 - com.shawnbe.mallfinder.MallFinderActivity] Uploading com.shawnbe.mallfinder.MallFinderActivity.apk onto device 'emulator-5554'
[2012-08-04 12:00:35 - com.shawnbe.mallfinder.MallFinderActivity] Installing com.shawnbe.mallfinder.MallFinderActivity.apk...
[2012-08-04 12:00:37 - com.shawnbe.mallfinder.MallFinderActivity] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2012-08-04 12:00:37 - com.shawnbe.mallfinder.MallFinderActivity] Please check logcat output for more details.
[2012-08-04 12:00:37 - com.shawnbe.mallfinder.MallFinderActivity] Launch canceled!

最佳答案

您的模拟器 AVD 没有 Google map 。创建一个模拟器 AVD,其“目标”名称中包含“Google API (Google Inc.)”。

关于Java安装错误: INSTALL_FAILED_MISSING_SHARED_LIBRARY maps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11810939/

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