如何在 Android 事物上添加 Google 地图库?
How to add Google Maps library on Android Things?
我正在使用 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?
我该如何解决这个问题?
地图 API 在 Android Things 中不可用。
您可以查看支持和不可用的列表 APIs here。
无论如何,您可以在 Android 事物上使用 MapBox 而不是 Google 地图 API.
更新:
至少从 Developer Preview 5 开始 Android Things 支持 Google 地图(来自 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
Nearby
Places
Mobile Vision
SafetyNet
我正在使用 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?
我该如何解决这个问题?
地图 API 在 Android Things 中不可用。
您可以查看支持和不可用的列表 APIs here。
无论如何,您可以在 Android 事物上使用 MapBox 而不是 Google 地图 API.
更新:
至少从 Developer Preview 5 开始 Android Things 支持 Google 地图(来自 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
Nearby
Places
Mobile Vision
SafetyNet