Android应用不适用于Google Play中的某些平板电脑 [英] Android app not available for some tablets in Google Play
问题描述
我在Google Play商店中发布了一款Android应用。我开发了它并在一些模拟器,我的移动电话和我的7英寸平板电脑上测试过,没有任何问题。
我检测到当试图从商店安装应用程序到我的平板电脑时,它说它与我的设备不兼容,我查找了原因,并在清单中添加了一些行,例如: >< supports-screens
android:largeScreens =true
android:normalScreens =true
$ b $ android:smallScreens =true
android:xlargeScreens =true
android:resizeable =true
android:anyDensity =true
/>
但是没有解决,我也添加了:
< uses-feature android:name =android.hardware.telephonyandroid:required =false>
但没有解决。
该应用使用Google Maps API。没有被列入我的平板电脑的唯一原因可能是全球定位系统的使用,我总是em。在开发过程中对我目前的位置进行了重新设置,我应该在清单中更改哪些设备,以允许没有GPS服务的设备与Google Play商店过滤器兼容?
谢谢 p>
编辑为包含整个AndroidManifest.xml文件:
< xml version =1.0encoding =utf-8?>
< manifest xmlns:android =http://schemas.android.com/apk/res/android
package =com.solinpromex.casajuventudtrescantos
android:versionCode = 4
android:versionName =1.4>
< uses-sdk
android:minSdkVersion =14
android:targetSdkVersion =19/>
< meta-data android:name =com.google.android.maps.v2.API_KEY
android:value =here here/>
< meta-data android:name =com.google.android.gms.versionandroid:value =@ integer / google_play_services_version/>
< uses-permission android:name =android.permission.INTERNET/>
< uses-permission android:name =android.permission.WRITE_EXTERNAL_STORAGE/>
< /使用权限android:name =android.permission.CALL_PHONE>< /使用权限>
< uses-permission android:name =android.permission.INTERNET/>
< /使用权限android:name =android.permission.CALL_PHONE>< /使用权限>
< permission android:name =com.solinpromex.casajuventudtrescantos.permission.MAPS_RECEIVE
android:protectionLevel =signature/>
< uses-permission android:name =com.solinpromex.casajuventudtrescantos.permission.MAPS_RECEIVE/>
<使用权限android:name =com.google.android.providers.gsf.permission.READ_GSERVICES/>
< uses-permission android:name =android.permission.ACCESS_COARSE_LOCATION/>
< uses-permission android:name =android.permission.ACCESS_FINE_LOCATION/>
< uses-permission android:name =android.permission.ACCESS_NETWORK_STATE/>
android:largeScreens =true
android:normalScreens =true
android:smallScreens =true
android:xlargeScreens =true
android:resizeable =true
$ b $ android:anyDensity =true
/>
< uses-feature
android:glEsVersion =0x00020000
android:required =true/>
< application
android:allowBackup =true
android:icon =@ drawable / logo192
android:label =@ string / app_name
android:theme =@ style / AppTheme
>
< meta-data android:name =com.google.android.gms.version
android:value =@ integer / google_play_services_version/>
< activity
android:name =com.solinpromex.casajuventudtrescantos.Inicio
android:label =@ string / app_name
android:screenOrientation =portrait> ;
< intent-filter>
< category android:name =android.intent.category.LAUNCHER/>
< / intent-filter>
< / activity>
..活动来这里
< / application>
< / manifest>
正如我在我的问题中所建议的,解决方案是将以下行添加到AndroidManifest.xml中:
< uses-feature android:name =android.hardware.location.gps android:required =false>< / uses-feature>
I have published an Android app in Google Play Store. I have developed it and tested it on some emulators, my mobile tel and my 7" tablet. No problem at all. I have detected that when trying to install the app from the store to my tablet, it says that it is not compatible with my device. I have searched for the reason, and I have added some lines to the manifest, like these:
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
But not solved. I have added also:
<uses-feature android:name="android.hardware.telephony" android:required="false">
But not solved.
The app uses Google Maps API. And the only reason for not being listed for my tablet may be the GPS use. I have always emulated my current position while developing, what should I change in the manifest to allow devices with no GPS service to be compatible to the Google Play Store filters?
Thank you
EDITED TO INCLUDE THE ENTIRE AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.solinpromex.casajuventudtrescantos"
android:versionCode="4"
android:versionName="1.4" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<meta-data android:name="com.google.android.maps.v2.API_KEY"
android:value="not shown here"/>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-feature android:name="android.hardware.telephony" android:required="false"></uses-feature>
<permission android:name="com.solinpromex.casajuventudtrescantos.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.solinpromex.casajuventudtrescantos.permission.MAPS_RECEIVE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
android:allowBackup="true"
android:icon="@drawable/logo192"
android:label="@string/app_name"
android:theme="@style/AppTheme"
>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.solinpromex.casajuventudtrescantos.Inicio"
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>
..activities come here
</application>
</manifest>
As I suggested in my question, the solution was to add the following lines to AndroidManifest.xml:
<uses-feature android:name="android.hardware.location.gps" android:required="false"></uses-feature>
<uses-feature android:name="android.hardware.telephony" android:required="false"></uses-feature>
这篇关于Android应用不适用于Google Play中的某些平板电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!