其他分享
首页 > 其他分享> > 如何在Android Things上添加Google Maps库?

如何在Android Things上添加Google Maps库?

作者:互联网

我正在使用Android的东西为Raspberry Ppi 3开发应用程序.

在项目中……

我的应用程序的androidmanifest.xml包含

uses-library android:name="com.google.android.maps" /

但它无法运行此应用程序.

我运行它时收到此消息. (已安装Google地图.)

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?

我怎么解决这个问题?

解决方法:

无论如何,您可以在Android Things上使用MapBox而不是Google Maps API.

更新:

至少从开发者预览版5 Android Things支持Google Maps(从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

07002

Nearby

Places

Mobile Vision

SafetyNet

标签:android-things,android,google-maps
来源: https://codeday.me/bug/20190828/1753962.html