Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY on Kindle fire

北城以北 提交于 2019-12-01 20:36:44

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!