gpt4 book ai didi

android - 可穿戴设备未安装应用程序(Android Wear 功能标准)

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:42:12 26 4
gpt4 key购买 nike

我有一个 Moto 360,但我无法在其中安装可穿戴应用程序(该应用程序作为 Beta 测试应用程序与 Play 商店中的移动应用程序一起分发)。

在开发这两个应用程序时,我在安装、通过蓝牙调试等方面都没有遇到任何问题...但是当我通过 Play 商店在手机中安装移动应用程序时, watch 不会安装可穿戴应用程序。

可穿戴 Gradle :

apply plugin: 'com.android.application'   
android {
compileSdkVersion 24
buildToolsVersion "24.0.3"

dataBinding{
enabled = true
}

defaultConfig {
applicationId "my.app"
minSdkVersion 21
targetSdkVersion 24
versionCode 56
versionName "1.0.0"
}

...

productFlavors {
dev {
applicationId "my.app.dev"
}
}

dependencies {
compile project(':shared')

compile 'com.google.android.support:wearable:2.0.0-alpha2'
compile 'com.google.android.gms:play-services-wearable:9.6.1'
}
}

可穿戴 list :

...
<uses-feature android:name="android.hardware.type.watch"/>

<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.CALL_PHONE" />
...

移动端:

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "my.app"
minSdkVersion 15
targetSdkVersion 24
versionCode 56
versionName "1.0.0"
}

...

productFlavors {
dev {
applicationId "my.app.dev"
}
}
}

...

dependencies {
compile project(':shared')
...
wearApp project(':wear')
compile 'com.google.android.gms:play-services-wearable:9.6.1'
}

移动 list :

...
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>

<!--GCM-->
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
...

它会是什么?

编辑:今天我通过 Google Play 控制台发现我的可穿戴应用被拒绝了,但错误消息并不十分具体。我正在关注这个 functionality criteria这是我收到的电子邮件:

Eligibility issues:

-Your app does not have Android Wear functionality that’s visible to the user.

If you’re adding wearable features to notifications, make sure they're triggering when appropriate.

You can review this checklist to make sure your wearable app is packaged correctly:

  • Include all the permissions declared in the manifest file of the wearable app in the manifest file of the mobile app. For example, if you specify the VIBRATE permission for the wearable app, you must also add that permission to the mobile app.
  • Ensure that both the wearable and mobile APKs have the same package name and version number.
  • Sign your app.
  • Test your app on a variety of different Android Wear devices and configurations.

那么,什么是:WR-VF - 应用具有用户可见的 Wear 功能。

谢谢。

最佳答案

您的 Gradle 文件不显示任何签名详细信息。您必须使用同一证书签署移动应用和可穿戴应用。

关于android - 可穿戴设备未安装应用程序(Android Wear 功能标准),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40224537/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com