1

发布 PGB 生成的 APK 时,Google Play 表示该应用程序不受 267 台设备“不支持”,包括 Google Nexus 7。

config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"
    id        = "com.test"
    version   = "1.0.0">

    <name>Test</name>

    <description>Test</description>

    <author href="http://www.test.com/" email="info@test.com">Test</author>

    <preference name="phonegap-version"           value="2.5.0" />          <!-- all: current version of PhoneGap -->
    <preference name="orientation"                value="default" />        <!-- all: default means both landscape and portrait are enabled -->
    <preference name="target-device"              value="universal" />      <!-- all: possible values handset, tablet, or universal -->
    <preference name="fullscreen"                 value="true" />           <!-- all: hides the status bar at the top of the screen -->
    <preference name="webviewbounce"              value="false" />          <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->
    <preference name="prerendered-icon"           value="true" />           <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
    <preference name="stay-in-webview"            value="false" />          <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
    <preference name="ios-statusbarstyle"         value="black-opaque" />   <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
    <preference name="detect-data-types"          value="false" />          <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
    <preference name="exit-on-suspend"            value="false" />          <!-- ios: if set to true, app will terminate when home button is pressed -->
    <preference name="show-splash-screen-spinner" value="false" />          <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->
    <preference name="auto-hide-splash-screen"    value="false" />          <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
    <preference name="disable-cursor"             value="false" />          <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
    <preference name="android-minSdkVersion"      value="7" />              <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
    <preference name="android-installLocation"    value="auto" />           <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->

    <gap:plugin name="BarcodeScanner" />
    <gap:plugin name="GenericPush" />
    <gap:plugin name="GAPlugin" />

    <access origin="*" />

    <icon src="icon.png" />
    <gap:splash src="splash.png" />

</widget>

知道如何解决吗?

4

1 回答 1

1

一般来说,AndroidManifest.xml 是您需要检查的文件。您应该确保添加 uses-feature 并为应用程序不需要的项目(例如相机)指定 android:required="false"。我已成功将以下内容添加到 Cordova/PhoneGap 应用程序以支持更广泛的设备:

    <!-- support a wider range of devices by not requiring a camera, gps, microphone or phone -->
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <uses-feature android:name="android.hardware.location" android:required="false" />
    <uses-feature android:name="android.hardware.location.GPS" android:required="false" />
    <uses-feature android:name="android.hardware.microphone" android:required="false" />
    <uses-feature android:name="android.hardware.telephony" android:required="false" />

此外,您可能会检查Google Play 排除设备和其他类似结果以查找特定于 Google Nexus 7 的问题。

Google 表示可以检查 APK 的 Supported Devices 列表以进行应用过滤(http://developer.android.com/distribute/googleplay/quality/tablet.html#google-play):确认应用的过滤 上传后应用程序到开发者控制台,检查 APK 的支持的设备列表,以确保应用程序没有从您要定位的平板设备中过滤出来。

于 2013-05-20T15:43:32.613 回答