Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/213.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
google play上的所有设备都不支持android应用程序?_Android_Android Studio_Android Fragments_Google Play_Google Play Services - Fatal编程技术网

google play上的所有设备都不支持android应用程序?

google play上的所有设备都不支持android应用程序?,android,android-studio,android-fragments,google-play,google-play-services,Android,Android Studio,Android Fragments,Google Play,Google Play Services,我在google play store上发布了一个Android应用程序,但它说它与所有设备都不兼容: 不受支持的设备:15023 下面是来自Google play开发者控制台的列表 menifest文件: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="masco.mis.software.mascoapproval"> <uses-permission andro

我在google play store上发布了一个Android应用程序,但它说它与所有设备都不兼容:

不受支持的设备:15023

下面是来自Google play开发者控制台的列表

menifest文件:

<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>
<uses-feature android:name="android.hardware.Camera" android:required="true" />

但是,当我在android studio上使用物理设备和emulator(api 19、22、25)对该应用程序进行测试时,该应用程序运行没有任何问题。

您已经在清单文件中指出了摄像头功能:

<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>
<uses-feature android:name="android.hardware.Camera" android:required="true" />

但是它必须是小写的:

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


没有设备具有android.hardware.Camera,这就是为什么您可以与零设备兼容。

您是否在清单中设置了最小值和最大值?是的。我刚刚添加了我的menifest,请看一看android:parentActivityName=“.HomeActivity”>看起来坏了,输入错误?为什么我以前没有注意到,android studio也没有提出任何投诉。你有一双锐利的眼睛,工作得很有魅力。。。现在支持的设备:10957不支持的设备:4073顺便说一句,我不相信是谁回答了我的问题。我过去几乎每天都在youtube上看你的课。:)耶!很高兴你能让它工作,我非常感谢你的好话:)我对android开发还比较陌生,这是我的第一个应用。你能给我一个线索,为什么仍然不受支持的设备:4073?我怀疑如果你在不受支持的列表中查找一些设备,大多数将是没有摄像头(更常见)或者可能不支持纵向锁定(不常见)的平板电脑。