Android Wear应用在Play控制台中显示为受0设备支持

时间:2018-11-13 23:45:20

标签: android google-play manifest wear-os android-wear-2.0

我有一个Android Wear应用,可以将其侧面加载到Wear手表上,并且可以正常运行。但是,当我将其上传到Play控制台时,它在工件库中显示为“支持的Android设备= 0设备”。我发布了清单文件的副本,是否需要更改以解决此问题(该应用程序应与运行wear 2.0或更高版本的任何设备兼容)?谢谢!

错误截图:https://snag.gy/GxjRz7.jpg 错误屏幕截图:https://snag.gy/5As7D8.jpg

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="thoughtcast.cast.thought.thoughtcasta">
    <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="28"/>
    <uses-feature android:name="android.hardware.type.watch" />
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />


    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.Manifest.permission.READ_PHONE_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/brain"
        android:label="ThoughtCast"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
     >
        <uses-library
            android:name="com.google.android.wearable"
            android:required="true" />
        <!--
               Set to true if your app is Standalone, that is, it does not require the handheld
               app to run.
        -->
        <meta-data
            android:name="com.google.android.wearable.standalone"
            android:value="false"
            tools:replace="android:value" />

        <activity
            android:name=".WatchActivity"
            android:label="ThoughtCast">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <service android:name=".MessageService">

            //Add the gms.wearable.MESSAGE_RECEIVED intent filter//

            <intent-filter>
                <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
                <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />

                //Specify your path, and a host for the filter. Again, I’m using a wildcard//

                <data android:scheme="wear" android:host="*" android:pathPrefix="/message_path" />

            </intent-filter>
        </service>
    </application>

</manifest>

0 个答案:

没有答案