Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/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
支持Android-0设备_Android_Ionic Framework - Fatal编程技术网

支持Android-0设备

支持Android-0设备,android,ionic-framework,Android,Ionic Framework,我更新现有应用程序时遇到问题。apk上传工作正常,但Google Play表示支持0台设备。我一直在寻找其他帖子,并试图修改我的清单,但运气不好 该应用程序是使用Ionic框架开发的。我目前已经成功上传了20多个旧版本。然而,今天我被困在这一点上 这是我的舱单: <?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="2000

我更新现有应用程序时遇到问题。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>

您是否在应用程序Gradle中添加了新的依赖项?有时,此错误来自未正确添加的依赖项

例如,我添加了这个库:

编译“org.apache.directory.studio:org.apache.commons.io:2.4”

但事实上,我应该这样补充:

编译“commons io:commons io:2.4”


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

这听起来像是Google Play的一个bug-有很多人都有相同的经验,显然可以忽略(并在事后检查):

这是console开发者的一个bug。今天,我遇到了同样的问题,并且毫无问题地发布了。

这是一个已知的bug,谷歌Play控制台工程师目前正在努力修复它,没有已知的ETA。我也是在经历了这些之后才写信给谷歌的,他们只能告诉我这些。(我确实建议他们向开发者提供一个通知,让他们知道这个问题)

你的代码看起来不错


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

以前版本的清单有什么不同?我比较了两个版本,变化是:versionCode、versionName和targetSDKVersion,我不知道为什么现在是25。我试着用同样的结果再次输入22。我没有在我的梯度上添加新的依赖项。我用graddleHi更新我的答案!我试过了。我仍然没有支持的设备谢谢!这是我的结论。今天晚些时候我会尝试更新我也有同样的问题。我将在这里发布并报告结果。
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
}