Google Play上的Android应用程序-与所有设备都不兼容

我试图在*和其他服务上找到2天的答案,但没有任何运气.
我已将应用发布到Google Play.它在那里,但是与大多数设备不兼容.
我使用Eclipse和TestFlight在Nexus 7上进行了测试,都没有安装问题.因此,我几乎可以确定它与AndroidManifest有关.

这是aapt转储标记结果:

Application.apk

package: name='com.test.application' 

versionCode='1' 

versionName='1.0'

sdkVersion:'11'

targetSdkVersion:'19'

uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'

uses-permission:'android.permission.ACCESS_NETWORK_STATE'

uses-permission:'android.permission.INTERNET'

application-label:'Application'

application-label-da:'Application'

application-label-el:'Application'

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-icon-480:'res/drawable-xxhdpi/ic_launcher.png'

application: label='Application' icon='res/drawable-mdpi/ic_launcher.png'

application-debuggable

launchable-activity: name='com.test.application.activity.Launcher'  

label='Application' icon=''

uses-permission:'android.permission.READ_EXTERNAL_STORAGE'

uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE','requested 

WRITE_EXTERNAL_STORAGE'

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.landscape'

uses-implied-feature:'android.hardware.screen.landscape','one or more activities have 
specified a landscape orientation'

main

other-activities

supports-screens: 'small' 'normal' 'large' 'xlarge'

supports-any-density: 'true'

locales: '--_--' 'da' 'el'

densities: '160' '240' '320' '480'

这是清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.test.application"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="19" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:allowBackup="true"
        android:hardwareAccelerated="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        android:debuggable="false"
        android:name=".ApplicationApplication">
        <activity
            android:name="com.test.application.activity.Launcher"
            android:label="@string/app_name"
            android:screenOrientation="sensorLandscape"
            android:configChanges="orientation|screenSize|keyboardHidden|locale">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.test.application.activity.SomeActivity"
            android:label="@string/app_name"
            android:screenOrientation="sensorLandscape"
            android:windowSoftInputMode="adjustPan"
            android:configChanges="orientation|screenSize|keyboardHidden|locale">
        </activity>
        <activity
            android:name="com.test.application.activity.AnotherActivity"
            android:label="@string/app_name"
            android:screenOrientation="sensorLandscape"
            android:windowSoftInputMode="adjustPan"
            android:configChanges="orientation|screenSize|keyboardHidden|locale">
         </activity>
    </application>

</manifest>

签名的APK是使用Android Studio构建的.
似乎可疑的是这种“应用程序可攻击的”.
你们有什么线索为什么在地球上与Nexus 7不兼容?

解决方法:

Is it saying, app is not compatible.

它在设备上显示错误,不仅是因为minSDKversion,而且Google也担心您对清单文件的指定权限.

例如,如果您输入以下内容:

<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

您的标签页将不支持它.

因此,不是使用使用权限,而是使用< uses-feature>.并在Java文件中检查所需硬件是否可用.

对于< uses-feature>请参阅以下链接:

http://developer.android.com/guide/topics/manifest/uses-feature-element.html#features-reference

如果使用此方法,则必须像这样更新清单:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.screen.portrait" android:required="false"/>

您必须输入< uses-permission>以及其必需的< uses-feature>.

和一些小技巧,如果它可以帮助您:

>您还必须牢记android:minSdkVersion使其兼容
与较低版本的设备.您必须将其设置为:android:minSdkVersion =“ 11”.

上一篇:类型执行aapt时出错:无法运行程序“ /opt/android-sdk-linux/build-tools/19.0.1/aapt”:java.io.IOException


下一篇:adb查看包名