0

E/PackageManager(78): 包 com.bountouris 需要不可用的共享库 com.google.android.maps;失败!

这是我的日志文件。我的应用程序在它工作之前。我没有改变任何关于地图的东西。

编辑:

显现:

<uses-sdk android:minSdkVersion="15" /> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 
<uses-permission android:name="android.permission.INTERNET" /> 
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > 
<uses-library android:required="true" android:name="com.google.android.maps"/> 
<activity android:name=".Syros1Activity" android:label="@string/app_name">
<intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter> 
</activity> 
<activity android:name=".MyMapActivity" android:label="@string/app_name" 
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
4

3 回答 3

5

碰巧您的代码使用了 GoogleAPI。右键单击您的项目 -> 运行方式 -> 运行配置...,在目标选项卡中 -> 选择具有 GoogleAPIs 的适当 Android 虚拟设备。(如 GoogleAPIs - 平台 2.3.3)。

应用 -> 运行。

于 2012-05-10T07:25:12.443 回答
0

使用不带任何选项的 android 命令启动 AVD 管理器。如果您在 Eclipse/ADT 中进行开发,您还可以从 Window > Android SDK 和 AVD Manager 访问该工具。

单击“新建”按钮开始创建新的 AVD。在出现的对话框中,指定 AVD 的名称并选择您希望 AVD 使用的系统映像目标。选择“Google API (Google Inc.)”目标之一,确保选择 API 级别与应用程序清单中的 android:minSdkVersion 属性匹配的版本,如上所述。配置其他选项,然后单击“创建 AVD”。创建完 AVD 后,您可以从 AVD Manager UI 运行它,也可以使用模拟器的命令行界面。如果您在 Eclipse 中进行开发,您可以配置一个运行配置来启动 AVD 并在其上安装您的应用程序。

于 2014-04-10T05:41:48.917 回答
-1

尝试从清单文件中删除它:

   <uses-library android:name="com.google.android.maps" android:required="true"/>
于 2014-10-11T14:38:42.860 回答