问题描述
我知道这里有类似的问题,但没有一个似乎有满意的答案。
我正在尝试发布应用程序,但无论如何我试用开发者控制台的报告是有零支持的设备
以下是我的完整清单;
<?xml version =1.0encoding =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 =5android:targetSdkVersion =17/>
支持屏幕
android:anyDensity =true
android:xlargeScreens =true
android:largeScreens =true
android:normalScreens =true
android:smallScreens =true
android:resizeable =true/>
< compatible-screens>
< screen android:screenSize =smallandroid:screenDensity =ldpi/>
< screen android:screenSize =smallandroid:screenDensity =mdpi/>
<屏幕android:screenSize =smallandroid:screenDensity =hdpi/>
< screen android:screenSize =smallandroid:screenDensity =xhdpi/>
< screen android:screenSize =normalandroid:screenDensity =ldpi/>
< screen android:screenSize =normalandroid:screenDensity =mdpi/>
< screen android:screenSize =normalandroid:screenDensity =hdpi/>
< screen android:screenSize =normalandroid:screenDensity =xhdpi/>
<屏幕android:screenSize =largeandroid:screenDensity =ldpi/>
<屏幕android:screenSize =largeandroid:screenDensity =mdpi/>
<屏幕android:screenSize =largeandroid:screenDensity =hdpi/>
< screen android:screenSize =largeandroid:screenDensity =xhdpi/>
<屏幕android:screenSize =xlargeandroid:screenDensity =ldpi/>
<屏幕android:screenSize =xlargeandroid:screenDensity =mdpi/>
< screen android:screenSize =xlargeandroid:screenDensity =hdpi/>
<屏幕android:screenSize =xlargeandroid:screenDensity =xhdpi/>
< screen android:screenSize =largeandroid:screenDensity =213/>
< / compatible-screens>
< uses-feature android:name =android.hardware.locationandroid:required =false/>
< uses-feature android:name =android.hardware.cameraandroid:required =false/>
<使用权限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/>
<使用权限android:name =android.permission.CAMERA/>
< application
android:icon =@ drawable / blahicon
android:label =@ string / app_name
android:allowBackup =false >
android:label =@ string / app_name
android:name =com.blah.blahpro.Main>
< intent-filter>
< category android:name =android.intent.category.LAUNCHER/>
< / intent-filter>
< / activity>
< activity
android:label =@ string / app_name
android:name =com.blah.satcalcpro.Find
>
< intent-filter>
< category android:name =android.intent.category.DEFAULT/>
< / intent-filter>
< / activity>
< / application>
< / manifest>
任何帮助表示感谢。
看来 uses-feature
是区分大小写的。 您的清单中的功能:
< uses-feature android:name =android.hardware.cameraandroid:required =假/>
< uses-feature android:name =android.hardware.CAMERA/>
第一个是OK。你想使用相机,但不是必需的。
问题是第二个需要 android.hardware.CAMERA
,这在任何Android设备中都不存在。他们有一个相机
,而不是 CAMERA
。
我希望这可以帮助你。
I'm aware there are similar questions on here, but none seem to have a satisfactory answer.
I'm trying to publish an app, but no matter what I try the developer console is reporting that there are zero supported devices
Here's my full manifest;
<?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>
Any help is appreciated.
It seems that uses-feature
is case sensitive.
You wrote two features in your manifest:
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.CAMERA" />
The first one is OK. You'd like to use a camera, but it is not required.
The problem is that the second requires an android.hardware.CAMERA
, which is not present in any Android device. They have a camera
, not a CAMERA
.
I hope this helps you.
这篇关于Google Play - 零支持的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!