共享库在Android的缺失。 [英] Shared library missing in android.

查看:614
本文介绍了共享库在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说,你的模拟器缺少库。在谷歌地图图书馆的文档的概述页面具有信息如何创造合适的一种虚拟设备仿真器。要点是:

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,您也可以从窗口> Android SDK和AVD管理工具。

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.   
  3. 在弹出的对话框中,指定AVD的名称,然后选择你想要的AVD使用系统映像的目标。选择谷歌的API(谷歌公司)的目标之一,因此一定要选择一个其API级别Android的版本相匹配。在你的应用程序清单的minSdkVersion属性,如上所述
  4.   
  5. 配置其他选项,然后单击创建AVD。
  6.   
  1. Click the "New" button to begin creating a new AVD.
  2. In the dialog that appears, specify a name for the AVD and select the system image target that you want the AVD to use. Select one of the "Google APIs (Google Inc.)" targets, making sure to choose a version whose API Level matches the android:minSdkVersion attribute in your application's manifest, as described above.
  3. Configure the other options and then click "Create 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.

有关AVDS的更多信息,请参见 Android的虚拟设备对Android开发者网站。

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

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

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