Android应用程序不支持谷歌播放的所有设备?

时间:2017-03-08 04:27:27

标签: android android-studio android-fragments google-play google-play-services

我在Google Play商店发布了一个Android应用,但它说它与所有设备不兼容:

不支持的设备:15023

以下是来自Google Play开发者控制台的列表

enter image description here enter image description here enter image description here enter image description here

清单文件:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="masco.mis.software.mascoapproval">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission    android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission  android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission  android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission  android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-feature android:name="android.hardware.Camera" android:required="true"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<application
android:name=".Tapplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_masco"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyC7UKI8yiVrzUllwLS3V2_b-H5Mor54KGc"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_message"/>
<meta-data  android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorPrimary"/>
<activity android:name=".MapActivity">
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity
android:name=".LoginActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".HomeActivity"
android:screenOrientation="portrait">
</activity>
<activity android:name=".chatoperation.NewChatOperationActivity">
</activity>
<activity android:name=".IntroActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name=".chat.ChatOperationActivity"/>
<receiver
android:name=".TReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<service
android:name=".service.LocationTService"
android:exported="false"/>
<service
android:name=".service.CountTService"
android:enabled="true"
android:exported="true"/>
<service
android:name=".service.FCMService"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service android:name=".fcm.FcmToken">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
</application>
</manifest>

我的gradle依赖关系如下:

apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "masco.mis.software.mascoapproval"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
{exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.makeramen:roundedimageview:2.2.1'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.google.android.gms:play-services-location:10.2.0'
compile 'com.google.android.gms:play-services-maps:10.2.0'
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.google.android.gms:play-services-places:10.2.0'
compile 'com.google.android.gms:play-services-analytics:10.2.0'
compile 'ch.acra:acra:4.9.1'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
compile 'com.android.support:design:25.2.0'
compile 'me.leolin:ShortcutBadger:1.1.11'
compile 'com.github.markomilos:paginate:0.5.1'
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
compile 'jp.wasabeef:recyclerview-animators:1.2.2'
compile 'com.google.firebase:firebase-messaging:10.2.0'
compile 'com.google.firebase:firebase-core:10.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

但是当我使用物理设备测试它并且在android studio上的模拟器(api 19,22,25)上运行时,这个应用运行没有任何问题。

1 个答案:

答案 0 :(得分:1)

你有

<uses-feature android:name="android.hardware.Camera" android:required="true" />

必须全部为小写:

<uses-feature android:name="android.hardware.Camera" android:required="true" />

没有设备具有android.hardware.Camera,这就是您与零设备兼容的原因。