我已经将apk
上传到了Google Play,但很遗憾,它被拒绝了
来自Google的评论:
•您的应用需要使用运行时权限才能完成 评价。请更新您的应用程序,使其达到API级别26以上 重新提交声明
我的应用有targetSdkVersion 28
权限:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
注意:出于send_sms的许可,我已经提交了Google合规性表格。
渐变
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
//buildToolsVersion '28.0.3'
defaultConfig {
applicationId "package"
minSdkVersion 16
targetSdkVersion 28
versionCode 20
versionName "3.3.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "Xg"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
java.srcDirs = ['src/main/java', 'src/main/java/Classes', 'src/main/java/2']
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/httpclient-4.0.3.jar')
implementation(name: 'android-maps-utils-0.4', ext: 'aar')
// implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.gms:play-services:8.4.0'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
答案 0 :(得分:0)
您不能使用权限
<uses-permission android:name="android.permission.SEND_SMS" />
您应该使用SMS Retriever API。 检查Google的政策更改here。