android 中缺少共享库. [英] Shared library missing in android.

查看:29
本文介绍了android 中缺少共享库.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

02-18 00:02:08.432: ERROR/PackageManager(57): 包 com.example.brown 需要不可用的共享库 com.google.android.maps;失败!

我在 logcat 中遇到了这个异常.

I got this exception in logcat.

有人可以指导我吗?

推荐答案

正如 CommonsWare 所说,您的模拟器缺少该库.Google 地图库文档的概览页面有关于如何为模拟器创建正确类型的虚拟设备的信息.要点是:

As CommonsWare said, your emulator is missing the library. The Google Maps Library's documentation's Overview page has info on how to create the right kind of virtual device for the emulator. The gist is:

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

Launch the AVD Manager by using the android command without any options. If you are developing in Eclipse/ADT, you can also access the tool from Window > Android SDK and AVD Manager.

  1. 点击新建"按钮开始创建新的 AVD.
  2. 在出现的对话框中,指定 AVD 的名称并选择您希望 AVD 使用的系统映像目标.选择Google API (Google Inc.)"目标之一,确保选择 API 级别与应用清单中的 android:minSdkVersion 属性匹配的版本,如上所述.
  3. 配置其他选项,然后单击创建 AVD".

创建完 AVD 后,您可以从 AVD 管理器 UI 运行它,也可以使用模拟器的命令行界面.如果您在 Eclipse 中进行开发,您可以配置一个运行配置来启动 AVD 并在其上安装您的应用程序.

Once you've finished creating the AVD, you can run it from the AVD Manager UI or you can use the emulator's command-line interface. If you are developing in Eclipse, you can configure a Run Configuration to start the AVD and install your application on it.

有关 AVD 的更多信息,请参阅 Android 虚拟设备Android 开发者网站.

For more information about AVDs, see Android Virtual Devices on the Android Developers site.

这篇关于android 中缺少共享库.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆