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

如何在Android Things上添加Google Maps库?,第1张

概述我正在使用Android的东西为RaspberryPpi3开发应用程序.在项目中……我的应用程序的androidmanifest.xml包含uses-libraryandroid:name="com.google.android.maps"/但它无法运行此应用程序.我运行它时收到此消息.(已安装Google地图.)Installationfailedwithmessag

我正在使用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上添加Google Maps库?全部内容,希望文章能够帮你解决如何在Android Things上添加Google Maps库?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1108579.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存