I have tried to upload new Android wear app to google play developer console and I've got the following message:
Upload failed APKs that use the 'android.hardware.type.watch' feature must have minimum SDK version of at least 23, and this APK has 20. If you are embedding a watch APK inside a phone APK, the phone APK does not need to use the 'android.hardware.type.watch' feature.
my app is configured to sdk 20. I need it to be available for android 5.1. my app is designed for wear only and not for both wear and phone/tablets.
things I have tried and didn't help:
1.remove
android:name="android.hardware.type.watch"
-the app is abled to be uploaded but I couldn't run it on a virtual watch device, it says:
missing uses-feature watch, non-watch apks cannot be launched on a watch
2.instead of removing
android:name="android.hardware.type.watch"
I have tried changing it to:
<uses-feature
android:name="android.hardware.type.watch"
android:required="false" />
-the app is abled to be uploaded but I couldn't run it on a virtual watch device, it says:
missing uses-feature watch, non-watch apks cannot be launched on a watch
- tried changing the minimum sdk from 20 to 23 -the app won't work on 20-22 sdk devices.
My manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.galepshtein.metronomewatch">
<uses-feature
android:name="android.hardware.type.watch"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@android:style/Theme.DeviceDefault">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>