关于在Google Play商店发布Android应用程序,我有一个奇怪的问题。问题是有0个设备兼容,因此我们无法发布它。
以下是清单文件的样子:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx"
android:installLocation="auto"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:xlargeScreens="true" >
</supports-screens>
<application
android:name=".application.xxx"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<!-- To use google maps -->
<uses-library android:name="com.google.android.maps" />
<!-- activities/services defined here -->
</application>
</manifest>
正如你所看到的,这里没什么特别的。我甚至试图发布具有0权限的应用程序,只是为了看看会发生什么,我仍然遇到相同的兼容性问题。
我应该提几件事:
minSdkVersion
设置为13,仍然是同一个问题。Ant
(ant clean release
)进行构建。该应用可在我们的任何设备(Galaxy SII with 2.3
,HTC Sensation with 2.3
,Galaxy Spica with 2.1
,Nexus S with 4.1.1
)上正常运行。有什么想法吗?
谢谢!
修改
aapt dump badging
的输出是:
package: name='com.myapp' versionCode='1' versionName='1.0'
sdkVersion:'7'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.READ_CONTACTS'
application-label:'MyApp'
application-label-fr:'MyApp'
application-icon-120:'res/drawable-ldpi/ic_launcher.png'
application-icon-160:'res/drawable-mdpi/ic_launcher.png'
application-icon-240:'res/drawable-hdpi/ic_launcher.png'
application-icon-320:'res/drawable-xhdpi/ic_launcher.png'
application: label='MyApp' icon='res/drawable-mdpi/ic_launcher.png'
uses-library:'com.google.android.maps'
launchable-activity: name='com.myapp.activities.SplashScreenActivity' label='MyApp' icon=''
uses-permission:'android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE','requested WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.READ_CALL_LOG'
uses-implied-permission:'android.permission.READ_CALL_LOG','targetSdkVersion < 16 and requested READ_CONTACTS'
uses-feature:'android.hardware.location'
uses-implied-feature:'android.hardware.location','requested a location access permission'
uses-feature:'android.hardware.location.gps'
uses-implied-feature:'android.hardware.location.gps','requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature:'android.hardware.touchscreen'
uses-implied-feature:'android.hardware.touchscreen','assumed you require a touch screen unless explicitly made optional'
uses-feature:'android.hardware.screen.portrait'
uses-implied-feature:'android.hardware.screen.portrait','one or more activities have specified a portrait orientation'
main
other-activities
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'fr'
densities: '120' '160' '240' '320'
答案 0 :(得分:3)
坦率地说,Google Play搞砸了。我有三个已发布的应用程序,它们与0个设备兼容,但却拥有数千个用户。甚至更奇怪的是,Google Play为我提供了这些应用的统计信息,向全世界的用户展示。
所以我会说继续发表它。有时可能需要一段时间才能显示,但一旦显示,您应该能够在设备上安装它并确认用户可以下载它,尽管控制台显示0兼容设备。
答案 1 :(得分:1)
我有同样的问题,但是一旦我发布它就会显示我兼容的设备数量。所以不要担心发布你的申请。
答案 2 :(得分:0)
原来它没有任何问题! apk刚刚未激活且错误消息具有误导性(说no compatible devices
而不是:0 apks activated
)。