支持Android Wear的Google Play APK必须具有至少23的最低SDK版本 [英] Google play APKs supporting Android Wear must have a minimum SDK version of at least 23
问题描述
我尝试将新的Android Wear应用上传到Google Play开发者控制台
,并收到以下消息:
上传失败
使用'android.hardware.type.watch'功能的APK
必须具有至少23的最低SDK版本,并且此APK有20个。如果
您正在嵌入手机APK里面的手表APK,手机APK不需要使用'android.hardware.type.watch'功能。
我的应用程序配置为sdk 20.
我需要它可用于android 5.1。
我的应用程序专为穿着而设计,不适用于穿着和手机/平板电脑。
我尝试过并且没有帮助的事情:
1.remove
android:name =android.hardware.type.watch
- 该应用可以上传,但无法在虚拟手表设备上运行,
它说:
缺少使用功能手表,非手表apks无法在手表上启动
2.不要删除
android: name =android.hardware.type.watch
我试着将它改为:
< uses-feature
android:name =android.hardware.type.watch
android:required =false/>
- 应用程序可以上传,但无法在虚拟手表设备上运行,
说:
缺少使用功能手表,非手表apks无法在手表上启动
- 尝试将最小sdk从20更改为23
- 应用程序无法工作在20-22 sdk设备上。
我的清单文件:
<?xml version =1.0encoding =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>
< category android:name =android.intent.category.LAUNCHER/>
< / intent-filter>
< / activity>
< / application>
< / manifest>
Android Wear 2.0 Developer Preview 4包含大量文档问题,请参阅 App Distribution 主题。
要套用: > 您似乎想分发独立的Android Wear 2.0应用,因此您应该将API级别设置为24. 另外,您必须设置定位通过提供 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 -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 I have tried changing it to: -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
My manifest file:
Android Wear 2.0 Developer Preview 4 has extensive documentation for your question, see the App Distribution topic. To paraphrase: It seems like you want to distribute a standalone Android Wear 2.0 app, so you should set the API level to 24. Also, you must set up targeting for watches by providing 这篇关于支持Android Wear的Google Play APK必须具有至少23的最低SDK版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
< uses-feature android:name =android.hardware.type.watch/>
并将应用程序标记为独立(请参阅 thi通过指定< meta-data android:name =com.google.android.wearable.standaloneandroid:value =true/> code>
android:name="android.hardware.type.watch"
android:name="android.hardware.type.watch"
<uses-feature
android:name="android.hardware.type.watch"
android:required="false" />
<?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>
<uses-feature android:name="android.hardware.type.watch" />
and mark the app as standalone (see this part of the docs) by specifying <meta-data android:name="com.google.android.wearable.standalone" android:value="true" />