错误信息:
<标题>Gradle文件你的应用包含不符合设备和网络滥用政策的内容。我们发现您的应用程序使用了不兼容的华为移动服务SDK版本,其中包含从Google Play以外的未知来源下载或安装应用程序的代码。考虑到SDK的性质,请将其从提交到Play Store的应用程序版本中删除。
dependencies {
implementation platform('com.google.firebase:firebase-bom:28.4.2')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.flaviofaria:kenburnsview:1.0.7'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation "com.huawei.agconnect:agconnect-auth-google:1.6.4.300"
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'com.google.android.gms:play-services-maps:18.0.2'
implementation 'com.google.firebase:firebase-messaging:23.0.6'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'com.google.firebase:firebase-common-ktx:20.1.1'
implementation 'com.google.firebase:firebase-config-ktx:21.1.1'
implementation 'com.google.firebase:firebase-inappmessaging-display-ktx:20.1.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.0'
ktlint "com.pinterest:ktlint:0.39.0"
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.retrofit2:converter-gson:2.6.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'android.arch.navigation:navigation-fragment-ktx:1.0.0'
implementation 'android.arch.navigation:navigation-ui-ktx:1.0.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.4.2.301'
implementation 'com.squareup.moshi:moshi-kotlin:1.12.0'
implementation 'com.squareup.retrofit2:converter-moshi:2.9.0'
implementation "androidx.cardview:cardview:1.0.0"
implementation 'com.instabug.library:instabug:10.12.3'
implementation 'me.aflak.libraries:fingerprint:2.5.3'
implementation 'com.android.billingclient:billing:5.0.0'
implementation 'com.google.android.play:core-ktx:1.8.1'
implementation 'com.google.firebase:firebase-config'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.android.gms:play-services-auth:20.2.0'
implementation 'com.google.android.play:core:1.10.3'
implementation 'com.shobhitpuri.custombuttons:google-signin:1.1.0'
implementation 'com.facebook.android:facebook-login:6.5.1'
implementation 'androidx.work:work-runtime:2.8.0-alpha02'
implementation 'com.huawei.hms:base:6.2.0.300'
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.4.1.306'
classpath 'com.google.gms:google-services:4.3.13'
classpath 'com.google.firebase:firebase-appdistribution-gradle:3.0.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
我需要改变什么才能被Google Play商店接受?
标题>备注确保您的APK使用最新的HMS Core SDK版本。关于HMS Core SDK版本更新请参考此答案。
如果您确认使用最新SDK版本,在向Google提交发布之前,请检查Google Play Console上所有测试轨道中的apks(包括开放测试,封闭测试,内部测试)。确保所有轨道上的apk(包括暂停轨道)已更新到最新的HMS Core SDK。