java - Google console showing 0 supported devices for android wear -


when try upload apk in google play developer console gives me 0 supported devices. application developed android wear. have tried manifest file , didn't find problem in that.

wear androidmanifest.xml

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.util.uni.student" >      <uses-sdk         android:minsdkversion="21"         android:targetsdkversion="22"         android:versioncode="1"         android:versionname="1.0"         />     <uses-feature android:name="android.hardware.type.watch" />      <uses-permission android:name="android.permission.access_fine_location" />      <application         android:allowbackup="true"         android:icon="@mipmap/st_icon"         android:label="@string/app_name"         android:theme="@android:style/theme.devicedefault" >         <activity             android:name=".studentbroadcastactivity"             android:label="student" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>          <receiver             android:name=".studentreceiver"             android:exported="true" >             <intent-filter>                 <action android:name="com.util.uni.student.show_notification" />             </intent-filter>         </receiver>         <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />     </application>  </manifest> 

edit:

screenshot developer console

i have made changes mentioned. , have 2 project 1 empty mobile module contains reference of wearable module. but, still getting 0 compatible device.

wear build.gradle script

apply plugin: 'com.android.application'  android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "com.util.uni.student"         minsdkversion 19         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     wearapp project(':wear')     compile 'com.android.support:appcompat-v7:22.2.0'     compile 'com.google.android.gms:play-services:7.5.0' } 

mobile build.gradle script

apply plugin: 'com.android.application'   android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "com.util.uni.student"         minsdkversion 19         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.google.android.support:wearable:1.2.0'     compile 'com.google.android.gms:play-services:7.5.0' } 

mobile androidmanifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.util.uni.student">      <uses-feature android:name="android.hardware.type.watch" />      <uses-permission android:name="android.permission.access_fine_location" />      <application android:allowbackup="true" android:label="@string/app_name"         android:icon="@mipmap/ic_launcher" android:theme="@style/apptheme">      </application>  </manifest> 

edit # 2:

i have updated mobile androidmanifest.xml , removed watch feature that. now, it's showing devices not showing watch device.

enter image description here

based on updated question mobile manifest not need watch feature. should included in watch app.

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

original answer before clarification may others

you cannot upload watch application play store, needs included within mobile apk file, if that's empty container.

your should have mobile build.gradle includes wearable app dependency, example below refers seperate module called wear part of project , contains watch application.

dependencies { compile filetree(dir: 'libs', include: ['*.jar']) wearapp project(':wear') compile 'com.google.android.gms:play-services-wearable:7.3.0' ... } 

see official documentation


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -