Android 中的 INSTALL_FAILED_MISSING_SHARED_LIBRARY 错误 [英] INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android

查看:28
本文介绍了Android 中的 INSTALL_FAILED_MISSING_SHARED_LIBRARY 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行使用 Google API 的 android 应用程序时,出现以下错误

When I am trying to run an android application which uses Google API I get the following error

[2009-07-11 11:46:43 - FirstMapView] 安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2009-07-11 11:46:43 - FirstMapView] 请检查 logcat 输出以了解更多详细信息.
[2009-07-11 11:46:44 - FirstMapView] 发布取消!

[2009-07-11 11:46:43 - FirstMapView] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2009-07-11 11:46:43 - FirstMapView] Please check logcat output for more details.
[2009-07-11 11:46:44 - FirstMapView] Launch canceled!

谁能帮我解决这个错误?

Can anyone help me solve this error?

推荐答案

要克服 INSTALL_FAILED_MISSING_SHARED_LIBRARY 错误,Android 版 Google 地图:

To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps for Android:

  1. 安装 Google 地图 API.这可以在 Eclipse Windows/Android SDK 和 AVD 管理器中完成 -> 可用包 -> 第三方附加组件 -> Google Inc. -> Google Inc. 的 Google APIs,Android API X

  1. Install Google map APIs. This can be done in Eclipse Windows/Android SDK and AVD Manager -> Available Packages -> Third Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API X

从命令行创建新的 AVD.这可以通过列出来完成目标(android 列表目标),然后 android 创建 avd -nnew_avd_api_233 -t "Google Inc.:Google APIs:X"

From command line create new AVD. This can be done by listing targets (android list targets), then android create avd -n new_avd_api_233 -t "Google Inc.:Google APIs:X"

然后在Eclipse Windows/Android中创建AVD(Android Virtual Device)SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: GoogleAPI(Google Inc.)- API 级别 X)

Then create AVD (Android Virtual Device) in Eclipse Windows/Android SDK and AVD Manager -> New... -> (Name: new_avd_X, Target: Google APIs (Google Inc.) - API Level X)

IMPORTANT :您必须使用 Target 作为 Google API (Google Inc.) 创建 AVD,否则它将再次失败.

IMPORTANT : You must create your AVD with Target as Google APIs (Google Inc.) otherwise it will again failed.

在 Eclipse File/New/Android Project 中创建 Android 项目和选择 Google API 构建目标.

Create Android Project in Eclipse File/New/Android Project and select Google APIs Build Target.

添加 <uses-library android:name="com.google.android.maps"/>在<应用程序>之间</应用程序>标签.

add <uses-library android:name="com.google.android.maps" /> between <application> </application> tags.

将项目作为 Android 应用程序运行.

Run Project as Android Application.

如果错误仍然存​​在,那么你仍然有问题,如果它有效,那么这个错误将永远在你身后.

If error persists, then you still have problems, if it works, then this error is forever behind you.

这篇关于Android 中的 INSTALL_FAILED_MISSING_SHARED_LIBRARY 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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