[英]Google play APKs supporting Android Wear must have a minimum SDK version of at least 23
I have tried to upload new Android wear app to google play developer console and I've got the following message: 我尝试将新的Android Wear应用程序上传到Google Play开发者控制台,并且收到以下消息:
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.
使用“ android.hardware.type.watch”功能上传失败的APK的SDK版本必须至少为23,且该APK的最低版本为20。如果您将watch APK嵌入手机APK中,则无需使用手机APK使用“ android.hardware.type.watch”功能。
my app is configured to sdk 20. I need it to be available for android 5.1. 我的应用配置为sdk20。我需要它可用于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 1.删除
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
缺少用途的功能手表,无法在手表上启动非手表apk
2.instead of removing 2.而不是删除
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
缺少用途的功能手表,无法在手表上启动非手表apk
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>
没有API级别低于23的Android Wear设备。当您上传的SDK版本最低为23时,您没有限制客户群。
Android Wear 2.0 Developer Preview 4 has extensive documentation for your question, see the App Distribution topic. Android Wear 2.0 Developer Preview 4包含有关您的问题的大量文档,请参阅“ 应用程序分发”主题。
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. 您似乎想分发一个独立的Android Wear 2.0应用,因此您应该将API级别设置为24。
Also, you must set up targeting for watches by providing <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" />
另外,您必须通过提供
<uses-feature android:name="android.hardware.type.watch" />
来设置手表的定位目标,并通过指定<meta-data android:name="com.google.android.wearable.standalone" android:value="true" />
将应用标记为独立应用(请参阅文档的此部分) <meta-data android:name="com.google.android.wearable.standalone" android:value="true" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.