谷歌播放 - 零支持的设备
我知道这里有类似的问题,但没有一个似乎有一个满意的答案。谷歌播放 - 零支持的设备
我想发布一个应用程序,但无论我怎么努力开发者控制台报告有零个支持的设备
这里是我的完整清单;
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.blah.blahpro"
android:versionCode="6"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="17"/>
<supports-screens
android:anyDensity="true"
android:xlargeScreens="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true" />
<compatible-screens>
<!-- small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!--Only hdpi and xhdpi for normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
<!-- Special case for Nexus 7 -->
<screen android:screenSize="large" android:screenDensity="213" />
</compatible-screens>
<uses-feature android:name="android.hardware.location" android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature android:name="android.hardware.CAMERA" />
<uses-permission android:name="android.permission.CAMERA" />
<application
android:icon="@drawable/blahicon"
android:label="@string/app_name"
android:allowBackup="false">
<activity
android:label="@string/app_name"
android:name="com.blah.blahpro.Main" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:name="com.blah.satcalcpro.Find"
>
<intent-filter >
<action android:name="com.blah.lookangles.FIND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
任何帮助表示赞赏。
似乎uses-feature
是区分大小写的。
你在你的清单中写了两个特点:
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.CAMERA" />
第一个是确定。你想使用相机,但不是必需的。
问题是,第二个需要android.hardware.CAMERA
,这是不存在于任何Android设备。他们有一个camera
,而不是CAMERA
。
我希望这可以帮助你。
感谢它解决了我非常大的问题 – SAndroidD 2016-01-07 10:52:38
我建议评论清单中的兼容屏幕和支持屏幕,并查看当您上传apk时会发生什么。我希望你会看到,当你这样做时,许多设备是允许的。
然后,一次添加几个这些需求,每次上传apk并查看哪些限制导致设备数量下降。一旦确定哪些限制导致了问题,您可以将这些限制在最终版本之外。
问题排序,但不能确定如何...我试图删除所有的兼容屏幕和支持屏幕代码,但没有太大的区别。我能想到的唯一的事情是我删除了该行;
<uses-feature android:name="android.hardware.CAMERA" />
反正不应该去那里。现在支持2522个设备,非常开心。
这里反正新的清单:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="17"/>
<uses-feature android:name="android.hardware.location" android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light"
android:allowBackup="false">
<activity
android:label="@string/app_name"
android:name="com.blah.blahpro.Main" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:name="com.blah.blahpro.Find"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
>
<intent-filter >
<action android:name="com.blah.blahactivity.FIND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
对于所有谁有同样的问题,并正在使用'android.hardware.camera'使用功能语句,你必须删除它。这是解决0支持设备问题的唯一方法。@sgccarey感谢您的方法 – 2013-05-10 15:29:10
我知道回答迟到了,我面临同样的问题。通过将所有用户功能设置为false,Play商店仍显示支持零设备。
这里是解决方案,希望能帮助别人
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
而且
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
您已经激活了APK? – 2013-03-23 16:19:47
我已经进入旧的控制台,取消激活并重新激活它。是否需要时间来解决或什么?我把它留了一夜... – sgccarey 2013-03-23 16:26:17