【问题标题】:Android - 0 devices supportedAndroid - 支持 0 个设备
【发布时间】:2017-05-20 19:36:00
【问题描述】:

我在更新现有应用时遇到问题。 apk 上传工作正常,但 Google Play 表示支持 0 个设备。我一直在寻找其他一些帖子,并试图修改我的清单,但没有成功。

该应用程序是使用 Ionic 框架开发的。我目前已经成功上传了 20 多个旧版本。但是今天我被困在了这一点上。

这是我的清单:

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="20000" android:versionName="2.0.0" package="PACKAGE" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <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" />
    <uses-feature android:name="android.hardware.location.gps" />
    <uses-feature android:name="android.hardware.location.network" />
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
    <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="me.apla.cordova.AppPreferencesActivity" />
        <provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
        </provider>
        <provider android:authorities="${applicationId}.sharing.provider" android:exported="false" android:grantUriPermissions="true" android:name="nl.xservices.plugins.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/sharing_paths" />
        </provider>
        <receiver android:name="cordova.plugins.Diagnostic$LocationProviderChangedReceiver">
            <intent-filter>
                <action android:name="android.location.PROVIDERS_CHANGED" />
            </intent-filter>
        </receiver>
        <receiver android:enabled="true" android:name="com.google.android.gms.analytics.AnalyticsReceiver">
            <intent-filter>
                <action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
            </intent-filter>
        </receiver>
        <service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.AnalyticsService" />
        <receiver android:enabled="true" android:exported="true" android:name="com.google.android.gms.analytics.CampaignTrackingReceiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
        <service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.CampaignTrackingService" />
        <receiver android:exported="true" android:name="com.google.ads.conversiontracking.InstallReceiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
    </application>
</manifest>

还有我的 graddle 依赖项:

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    compile "com.android.support:support-v4:24.1.1+"
    compile "com.squareup.okhttp3:okhttp:3+"
    compile "com.android.support:support-v4:23.+"
    compile "com.android.support:appcompat-v7:23.+"
    compile "com.google.android.gms:play-services-analytics:+"
    // SUB-PROJECT DEPENDENCIES END
}

【问题讨论】:

  • 以前版本的manifest有什么不同?
  • 我对比了两个版本,变化分别是:versionCode、versionName和targetSDKVersion,不知道为什么现在是25,我又试了放22,结果还是一样。

标签: android ionic-framework


【解决方案1】:

这听起来像是 Google Play 的错误 - 有很多人有相同的经历,显然可以忽略它(然后检查):0 supported Android devices on Google Play app update

【讨论】:

  • 谢谢!这就是我的结论。我将在今天晚些时候尝试更新
  • 我也有同样的问题。我将在这里启动并报告结果。
【解决方案2】:

您是否在 App Gradle 中添加了新的依赖项?有时此错误来自未正确添加的依赖项。

例如我添加了这个库:

编译'org.apache.directory.studio:org.apache.commons.io:2.4'

但实际上我应该这样添加:

编译'commons-io:commons-io:2.4'

您也可以尝试将所有 com.android.support 依赖项更新为 25.+ 版本,并将您的 targetSdkVersion 也设置为 25。

【讨论】:

  • 我没有在我的 graddle 上添加新的依赖项。我用 graddle 更新我的答案
  • 嗨!刚试过。我仍然没有支持的设备
【解决方案3】:

这是控制台开发人员的错误。今天我遇到了同样的问题,并且启动时没有问题。

【讨论】:

    【解决方案4】:

    这是一个已知的错误,Google Play 控制台工程师目前正在努力修复它,没有已知的预计到达时间。在经历了这个之后,我刚刚写信给谷歌,这就是他们能告诉我的全部。 (我确实建议他们向开发人员提供通知,让他们知道这个问题)。

    您的代码看起来不错。

    仅供参考,截至 2017 年 5 月 20 日,问题已解决,现在应该可以解决了!

    【讨论】:

      猜你喜欢
      • 2015-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-30
      • 1970-01-01
      相关资源
      最近更新 更多