我推出了一个Android应用程序,它支持sdk
版本大于14
的设备仍然与具有Android版本4.1.2的设备不兼容,这是一个名为gts7262的三星设备,我有检查了应用权限,并且所有权限都与该设备兼容。
请帮助我弄清楚为什么Play商店说app在该设备上不兼容。我在清单文件中使用了以下权限和sdk版本
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<!-- Permission to access network state -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Permission to use camera - required by card.io-->
<uses-permission android:name="android.permission.CAMERA" />
<!-- Permission to vibrate - recommended, allows vibration feedback on scan -->
<uses-permission android:name="android.permission.VIBRATE" />
<!--Permission needed to read default email addresses-->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!--Permission needed to use internet on user's mobile-->
<uses-permission android:name="android.permission.INTERNET"/>
<!--Permission needed to trigger broadcast receiver for new incoming messages -->
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<!--Permission needed to retrieve OTP for verifying user mobile number -->
<uses-permission android:name="android.permission.READ_SMS"/>
<!--Permission needed to read user's contact for invite friends features-->
<uses-permission android:name="android.permission.READ_CONTACTS" />
<!--Permission needed to keep the processor from sleeping when GCM message is received -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!--Permissions needed for the location tracking-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!--Permission needed to register GCM & receiving messages-->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<!--Permission to prevent other Android applications from registering and receiving the GCM messages -->
<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="app.windsleeve.momoe.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<!-- Camera features - recommended by card.io-->
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
答案 0 :(得分:1)
GTS-7262,即三星Galaxy Star Pro S7260,在GSM Arena中被描述为lacking GPS functionality。
当您要求时:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
我建议你将它添加到你的清单中:
<uses-feature
android:name="android.hardware.location"
android:required="false" />
<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />
当然,如果GPS和位置功能对您的应用并不是绝对必要的,那么在这种情况下您可以采用优雅降级。这显然取决于你的应用程序。