Android应用与自己的设备不兼容

时间:2016-05-19 13:36:33

标签: android cordova device incompatibility

我目前正在使用Cordova开发应用程序,并在我的Android设备上测试它(Chuwi Hi8(4.4)和Homtom HT6(5.1)),该应用程序正常运行。现在我发布了apk,但appstore告诉我该应用程序与我的所有设备不兼容(开发者控制台说~10000兼容)。此外,我无法在开发人员控制台的设备列表中找到我的模型(设备兼容性=>所有设备)。现在我并不震惊谷歌并不知道这些中国手机,但我可以在其上安装其他应用程序,因此这些开发人员必须能够使他们的应用程序与我的设备兼容。

这是我的清单:

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10101" android:versionName="1.1.0" package="de.codolith.venuerater" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <application android:hardwareAccelerated="true" android:icon="@drawable/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:screenOrientation="portrait" 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>
    </application>
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CAMERA" />
</manifest>

我无法看到我的应用与我的设备不兼容的任何原因。它还表示它与Bluestacks不兼容,Bluestacks在商店中显示为“未知设备”。

有没有人知道这里可能出现什么问题?

//编辑:我刚刚检查过,我可以在我的设备上找到它,但为什么它说它在浏览器中不兼容?

1 个答案:

答案 0 :(得分:0)

您的问题可能是由于相机要求造成的。你的apk是多大?如果它太大,设备可能没有足够的内部存储空间。您是否也位于受限制的国家?

您不想要相机,此权限需要后置摄像头。这将允许它在没有后置摄像头的设备上工作。

Pre Android 4.2:

<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.camera.flash" android:required="false"/>    

Android 4.2 +

<uses-feature android:name="android.hardware.camera.any"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.camera.flash" android:required="false"/>