Wearable not installation app (Android Wear functional criteria)

I have a Moto 360 and I canโ€™t install a downloadable application (which is distributed as a beta application along with the mobile application on the Play Store).

When developing both applications, I had no problems installing, debugging via Bluetooth, etc. But when I install the mobile application on my phone through the Play Store, the watch does not install the downloadable application.

Wearable 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' } } 

Wearable manifest:

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

Mobile gradle:

 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' } 

Mobile manifest:

 ... <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"/> ... 

What could it be?

EDIT: Today I found through the Google Play console that my downloadable application was rejected, but the error message is not entirely specific. I follow these criteria of functionality , and this letter I received:

Rights to participate:

- Your application does not have Android Wear functionality visible to the user.

If you add wearable features to notifications, make sure they are if necessary.

You can view this checklist to make sure your downloadable application is properly packaged:

  • Include all permissions declared in the manifest file of the downloaded application in the manifest file of the mobile application. For example, if you specify the VIBRATE permission for the downloaded application, you must also add this permission to the mobile application.
  • Make sure that both the download and mobile APKs have the same name and version number.
  • Sign your application.
  • Check out the app across Android Wear devices and configurations.

So, what is: WR-VF - the application has Wear functionality that is visible to the user.?

Thanks.

+6
source share
2 answers

In the end, I found a solution, but forgot to share:

 dependencies { wearApp project(path: ':wear', configuration: 'productionRelease') ... } 

Where 'productionRelease' = productFlavor + buildType

EDIT: gradle-plugin-3-0-0-migration

0
source

Your Gradle files do not display signing data. You must sign both mobile and wearable applications with the same certificate.

0
source

Source: https://habr.com/ru/post/1011665/


All Articles