尽管我的应用程序与用户数据安全无关(一个简单的信用计算应用程序),但每次我在 Google Play 控制台上发布它时,我都会收到以下消息:
build.gradle(:应用程序):
plugins {
id 'com.android.application'
}
android {
namespace '***************************'
compileSdk 34
defaultConfig {
applicationId "***********************************e"
minSdk 24
targetSdk 34
versionCode 8
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
//buildToolsVersion '30.0.3'
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'com.google.android.gms:play-services-ads:22.6.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
请告诉我您在哪里看到用户数据泄露,并帮助我 如何解决这个问题呢。感谢大家
该问题与所使用的SDK版本直接相关。使用 SDK 的版本 33 而不是版本 34,当然还有依赖项“com.google.android.gms:play-services-ads:22.3.0”而不是“com.google.android.gms:play-services-”广告:22.6.0'。就是这样。 请毫不犹豫地提出您的解决方案。 谢谢大家。