发布后,Android应用在任何设备上都不兼容

时间:2014-09-09 18:25:05

标签: android google-api android-manifest google-play-services

我刚刚在google play上发布了我的应用,发现我的测试设备都没有兼容。即使在开发人员控制中,也有兼容的设备部分,并且它表示有7041个设备,0个与我的应用程序兼容。

这是我的清单

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

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="18" />
<uses-feature android:glEsVersion="2" android:required="true" android:name="GLES2.0"/>
<uses-feature
    android:name="android.hardware.telephony"
    android:required="false" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >


    <activity android:name="com.google.android.gms.ads.AdActivity"          
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    android:theme="@android:style/Theme.Translucent" />
    <meta-data
     android:name="com.google.android.gms.games.APP_ID"
     android:value="@string/app_id" />
    <meta-data
     android:name="com.google.android.gms.version"
     android:value="@integer/google_play_services_version" />

    <activity
        android:name="com.*************************"
        android:label="@string/app_name" 
        android:screenOrientation="portrait"
        android:launchMode = "singleInstance"
        android:configChanges="keyboardHidden|orientation|screenSize">
        <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.*************************" 
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden|orientation|screenSize">
        <!--  android:launchMode = "singleInstance">-->
    </activity>
    <activity
        android:label="@string/app_name"
        android:name="com.******************************" 
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden|orientation|screenSize">
    </activity>

</application>

为什么会产生这种影响?

这是我的应用需要的权限

完全网络访问 查看网络连接

我正在使用谷歌播放服务

3 个答案:

答案 0 :(得分:3)

因为在清单中你提到了

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="18" />

支持从14到18.将您的targetsdk版本增加到21. min sdk版本为11   (android 3.0到4.4)

 <uses-sdk
  android:minSdkVersion="11" // you can target from android 3.0 as your wish
  android:targetSdkVersion="21" />

答案 1 :(得分:1)

使用:

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="21" />

答案 2 :(得分:1)

在与Google支持人员交谈后,我设法让这项工作正常工作

这一行

 <uses-feature android:glEsVersion="2" android:required="true" android:name="GLES2.0"/>

应该是

 <uses-feature android:glEsVersion="0x00020000" android:required="true" />

我从教程中得到了第一种方法,但我不能记住我的生活中哪一个,所以只是因为它们并不总是正确的,所以只使用了什么资源