Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Google Maps library on Android Things?

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?

like image 389
Woong Kim Avatar asked Feb 16 '26 16:02

Woong Kim


2 Answers

Maps API isn't available in Android Things.

You can check the the list of supported and unavailable APIs here.

like image 165
russellhoff Avatar answered Feb 19 '26 06:02

russellhoff


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

like image 30
Andrii Omelchenko Avatar answered Feb 19 '26 04:02

Andrii Omelchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!