为什么Chromebook“不支持” Android My App?

我知道在SO上还有其他类似的问题,但是没有一个直接解决.

我的AndroidManifest.xml中包含以下部分:

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location.gps" />

如何判断Play控制台告诉Chromebook不受支持,这是什么导致的?还是完全不一样呢?

*更新*

我的清单看起来像这样,但Play Console仍然没有将Chromebook指示为受支持的设备,因此我很茫然.

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
    <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singletop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
        <intent-filter android:label="@string/launcher_name">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <receiver android:name="cordova.plugins.Diagnostic$LocationProviderChangedReceiver">
        <intent-filter>
            <action android:name="android.location.PROVIDERS_CHANGED" />
        </intent-filter>
    </receiver>
    <receiver android:name="cordova.plugins.Diagnostic$NFCStateChangedReceiver">
        <intent-filter>
            <action android:name="android.nfc.action.ADAPTER_STATE_CHANGED" />
        </intent-filter>
    </receiver>
</application>
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" />
<uses-feature android:name="android.hardware.location.gps" required="false" />
<uses-feature android:name="android.hardware.touchscreen" required="false" />
<uses-feature android:name="android.hardware.location.network" required="false" />
<uses-feature android:name="android.hardware.wifi" required="false" />

解决方法:

并非所有的Chromebook都具有触摸屏或GPS.这些应该是可选的,而不是必需的.

尝试这个

<uses-feature android:name="android.hardware.touchscreen" required="false" />
<uses-feature android:name="android.hardware.location.gps" required="false" />

您可能需要修改代码解决GPS不存在的问题.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...