安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY上的Kindle Fire错误、INSTALL_FAILED_MISSING_SHARED_LIBRARY、Fire

2023-09-07 11:35:24 作者:铅笔画再羙也是灰色

我试图运行演示Android地图项目(MapsDemo),与我的Kindle Fire的 Android的SDK(谷歌API 10)走来,但它引发此异常当应用程序被安装。

I am trying to run the demo android maps project(MapsDemo) that comes along with the Android SDK (Google API 10) on my Kindle Fire but it throws this exception when the application is installing.

[2012-01-31 23:01:15 - MapsDemo] Installing MapsDemo.apk...
[2012-01-31 23:01:17 - MapsDemo] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2012-01-31 23:01:17 - MapsDemo] Please check logcat output for more details.

和日志猫

01-31 23:06:01.206: D/PackageManager(1372): Scanning package com.example.android.google.apis
01-31 23:06:01.206: E/PackageManager(1372): Package com.example.android.google.apis requires unavailable shared library com.google.android.maps; failing!
01-31 23:06:01.206: W/PackageManager(1372): Package com.example.android.google.apis couldn't be installed.

同code正常工作时,我跑在我的HTC Desire。

Same code works fine when i ran in my HTC Desire..

是否有可能用另一种方法比使用谷歌API使用KML和绘制路线?

Is it possible to use KML and draw the routes using another way than using the Google APIs?

任何人知道如何解决这个问题呢?

Anybody knows how to solve this issue ?

推荐答案

您不能使用谷歌地图插件为Android上的Kindle Fire,因为它不存在。

You cannot use the Google Maps add-on for Android on the Kindle Fire, as it does not exist.

您可以添加机器人:要求=假<使用库> 元素清单,然后检查在运行时,看 MapActivity 类是可以在你的虚拟机:

You can add android:required="false" to your <uses-library> element in the manifest, then check at runtime to see if the MapActivity class is available in your virtual machine:

try {
  Class.forName("com.google.android.maps.MapActivity");
  // if you get here, you have Google Maps, so you can safely start a MapActivity
}
catch (Exception e) {
  // if you get here, you do not have Google Maps
}

你做什么,在你没有谷歌地图的情况下,你会遇到的火,是你。

What you do in the "you do not have Google Maps" case, as you will encounter on the Fire, is up to you.