Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY to light a fire

I am trying to run a demo android card project (MapsDemo) that comes with the Android SDK (Google API 10) in my Kindle Fire, but it throws this exception when the application is installed.

 [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. 

and log cat

 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. 

The same code works fine when I launched my HTC Desire ..

Can I use KML and draw routes in a different way than using the Google APIs?

Does anyone know how to solve this problem?

+4
source share
1 answer

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 the <uses-library> element in the manifest, and then check at runtime to see if the MapActivity class is MapActivity on 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 case of β€œyou do not have Google Maps”, how you come across Fire, is up to you.

+7
source

Source: https://habr.com/ru/post/1394013/


All Articles