Apk仅由1个设备支持

时间:2015-09-17 10:15:28

标签: android google-play apk

我尝试在Play商店平台上发布应用程序时遇到问题。当我上传.apk文件时,我发现它只与1个设备兼容。我查看了AndroidManifest.xml文件,但我没有发现任何限制在其他设备中使用的内容。该应用程序与我发布的任何其他类似应用程序具有相同的权限,而另一个应用程序与超过8000个设备兼容。唯一不同的是,在这个新的应用程序中,我已经添加了具有所需权限的服务GCM和bitcoinj-0.12.3库。什么原因与更多设备不兼容?这些是我在AndroidManifest.xml文件中声明的所有权限:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.app" >
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.READ_CONTACTS" />
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.READ_PHONE_STATE" />
   <!--
        The following two permissions are not required to use
        Google Maps Android API v2, but are recommended.
   -->
   <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
   <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> 
   <!-- GCM PERMISSIONS -->
   <uses-permission android:name="android.permission.WAKE_LOCK" />
   <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
   <uses-permission android:name="com.google.android.c2dm.permission.SEND" />
   <permission android:name="com.my.app.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />
   <uses-permission android:name="com.my.app.permission.C2D_MESSAGE" />

   <application android:name="com.activeandroid.app.Application"
       android:allowBackup="true"
       android:icon="@drawable/launcher"
       android:label="@string/app_name"
       android:theme="@style/AppTheme" >
       <meta-data android:name="AA_DB_NAME"
           android:value="app.db" />
       <meta-data android:name="AA_DB_VERSION"
           android:value="1" />
       <meta-data android:name="com.google.android.gms.version"
           android:value="@integer/google_play_services_version" />
       <meta-data android:name="com.google.android.maps.v2.API_KEY"
           android:value="myAPI_KEY" />
       <activity android:name=".ui.SplashActivity"
           android:label="@string/app_name"
           android:screenOrientation="portrait" >
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
       </activity>
       <activity android:name=".ui.PendingActivity"
           android:label="@string/pending_activity"
           android:screenOrientation="portrait" >
       </activity>
       <activity android:name=".ui.OKActivity"
           android:label="@string/ok_activity"
           android:screenOrientation="portrait" >
       </activity>
       <activity android:name=".ui.KOActivity"
           android:label="@string/ko_activity"
           android:screenOrientation="portrait" >
       </activity>
       <activity android:name=".ui.InputActivity"
           android:label="@string/input_activity"
           android:parentActivityName=".ui.LoggedHomeActivity"
           android:screenOrientation="portrait" >
           <!-- Parent activity meta-data to support 4.0 and lower -->
           <meta-data android:name="android.support.PARENT_ACTIVITY"
               android:value=".ui.LoggedHomeActivity" />
       </activity>
       <activity android:name=".ui.LoggedHomeActivity"
           android:label="@string/app_name"
           android:screenOrientation="portrait"
           android:theme="@style/MyMaterialOwnTheme"
           android:windowSoftInputMode="adjustPan" >
           <intent-filter>
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
               <data android:scheme="myapp" />
           </intent-filter>
           <intent-filter>
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
               <data android:scheme="bitcoin" />
           </intent-filter>
           <intent-filter>
               <action android:name="android.intent.action.SEND" />
               <category android:name="android.intent.category.DEFAULT" />
               <data android:mimeType="text/*" />
           </intent-filter>
       </activity>
       <!-- [START gcm_receiver] -->
       <receiver android:name="com.google.android.gms.gcm.GcmReceiver"
           android:exported="true"
           android:permission="com.google.android.c2dm.permission.SEND" >
           <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
            <category android:name="gcm.play.android.samples.com.gcmquickstart"/>
           </intent-filter>
       </receiver>
       <!-- [END gcm_receiver] -->
       <!-- [START gcm_listener] -->
       <service android:name=".gcm.NotificationService"
           android:exported="false" >
           <intent-filter>
              <action android:name="com.google.android.c2dm.intent.RECEIVE" />
           </intent-filter>
       </service>
       <!-- [END gcm_listener] -->
       <!-- [START instanceId_listener] -->
       <service android:name=".gcm.GCMIdentificationService"
          android:exported="false" >
             <intent-filter>
                <action android:name="com.google.android.gms.iid.InstanceID" />
             </intent-filter>
       </service>
       <!-- [END instanceId_listener] -->
       <service android:name=".gcm.RegistrationIntentService"
           android:exported="false" >
       </service>
   </application>

这是来自Google Play的分析结果: Google Play analisis

编辑:我已阅读帖子Android app is supported by 0 devices,但我无法修复任何内容

编辑2:发布完整的AndroidManifest.xml文件。

1 个答案:

答案 0 :(得分:1)

您可以在build.gradle中执行此操作来防止此问题

compile 'com.google:bitcoinj:0.11.3@jar'
// the above @jar is important
// context: https://stackoverflow.com/questions/22730620/bad-apk-when- using-bitcoinj-from-maven-central

https://github.com/ligi/satoshiproof

相同

原因:View this answer