我已经尝试了所有方法来解决但无法解决。下面是我的清单和gradle的代码snipeet
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.datadrive"
android:versionCode="39"
android:versionName="1.34">
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="25"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- <uses-feature
android:name="android.hardware.location.gps"
android:required="false"/>-->
<application
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme_NoAction">
<activity
android:name="com.datadrive.activitites.SplashActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.FullScreen"
android:windowSoftInputMode="adjustResize|stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.datadrive.activitites.MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme_NoAction"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="com.datadrive.activities_new.MainActivitySecond"
android:screenOrientation="portrait"
android:theme="@style/AppTheme_NoAction"
android:windowSoftInputMode="adjustResize|stateHidden"></activity>
<activity
android:name="com.datadrive.activitites.LoginActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme_NoAction"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity android:name="com.datadrive.activitites.DemoActivity">
<!--
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
-->
</activity>
<activity android:name="com.datadrive.activitites.ViewDetailsActivity" />
<activity android:name="com.datadrive.activitites.ViewDataBaseActivity"></activity>
</application>
</manifest>
以下是我的gradle代码段:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.datadrive"
minSdkVersion 16
targetSdkVersion 25
versionCode 39
versionName "1.35"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.google.android.gms:play-services-location:10.2.4'
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.android.volley:volley:1.0.0'
compile files('libs/simplelatlng-1.3.0.jar')
compile files('libs/crittercism_v5_0_4_sdkonly.jar')
compile 'commons-io:commons-io:2.4'
}
我尝试将我应用的新版本上传到Play商店,并显示0个支持的设备。
为了进行测试,我回滚了我的旧版本,只更改了gradle文件中的版本代码/名称,并尝试再次上传apk。它也显示了0个受支持的设备。
几天前,该版本支持超过10000台设备。
是因为谷歌政策发生变化还是我更新了我的gradle和android工作室?