I'm developing an app for Raspberry Ppi 3 using Android things.
And in the project...
My app's androidmanifest.xml contains
uses-library android:name="com.google.android.maps" /
but it couldn't run this app.
I get this message when I run it. (Google Maps installed.)
Installation failed with message INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.androidthings.myproject-1: Package com.example.androidthings.myproject requires unavailable shared library com.google.android.maps; failing!. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
How can I solve this problem?
Maps API isn't available in Android Things.
You can check the the list of supported and unavailable APIs here.
Anyway, You can use MapBox on Android Things instead of Google Maps API.
UPDATE:
At least from Developer Preview 5 Android Things supports Google Maps (from Official Overview):
Android Things supports a subset of the Google APIs for Android. The following table breaks down API support in Android Things:
Supported APIs:
Awareness
Cast
Google Analytics for Firebase
Firebase Cloud Messaging (FCM)
Firebase Crash Reporting
Firebase Realtime Database
Firebase Remote Config
Firebase Storage
Fit
Instance ID
Location
Maps
Nearby
Places
Mobile Vision
SafetyNet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With