【问题标题】:Google play: We found ad SDKs in your appGoogle play:我们在您的应用中发现了广告 SDK
【发布时间】:2026-01-30 08:00:01
【问题描述】:

我在 google play 控制台中有这个警告,它告诉我我的应用中有广告,但我没有在我的应用中使用任何广告。

广告 让我们知道您的应用是否包含广告。这包括广告 由第三方广告网络提供。确保此信息是 准确并保持最新。了解更多

我们在您的应用中发现了广告 SDK

这是Gradle依赖,我不知道是哪个库使用ads依赖,我应该怎么知道?

dependencies {

    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {

    }

    implementation files('libs/android-viewbadger.jar')
    implementation "org.androidannotations:ormlite-api:$AAVersion"
    annotationProcessor "org.androidannotations:ormlite:$AAVersion"
    implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.2.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'com.google.code.gson:gson:2.8.6'
    implementation 'com.squareup.picasso:picasso:2.8'
    implementation 'com.koushikdutta.ion:ion:2.2.1'
    implementation 'com.google.firebase:firebase-core:18.0.3'
    implementation 'com.google.firebase:firebase-invites:17.0.0'
    implementation 'com.google.firebase:firebase-auth:20.0.3'
    implementation 'com.google.firebase:firebase-messaging:21.1.0'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation ('com.google.android.libraries.places:places:2.4.0'){
        exclude group: "com.android.volley"
    }
    implementation 'com.google.android.gms:play-services-auth:19.0.0'
    implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
    implementation 'com.j256.ormlite:ormlite-android:5.1'
    implementation 'com.j256.ormlite:ormlite-core:5.1'
    implementation'com.facebook.android:facebook-android-sdk:7.0.1'
    implementation 'com.github.PhilJay:MPAndroidChart:v2.2.5'
    implementation 'net.objecthunter:exp4j:0.4.7'
    implementation ('com.squareup.okhttp3:okhttp:3.12.10'){
        force = true
    }
    implementation 'com.kyanogen.signatureview:signature-view:1.1@aar'
    implementation 'pl.bclogic:pulsator4droid:1.0.3'
    implementation 'com.nineoldandroids:library:2.4.0'
    implementation 'com.github.pwittchen:reactivenetwork-rx2:3.0.1'
    implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
    implementation 'com.github.alxrm:audiowave-progressbar:0.8'
    implementation 'net.danlew:android.joda:2.9.5.1'
    implementation 'com.github.paolorotolo:expandableheightlistview:1.0.0'
    implementation 'com.asksira.android:webviewsuite:1.0.3'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
    implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
    implementation 'com.google.firebase:firebase-crashlytics:17.4.1'
    implementation 'com.google.firebase:firebase-analytics:18.0.3'
    implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
    implementation 'moe.feng:MaterialStepperView:0.2.4.2'
    implementation 'com.github.danielceinos:Cooper:1.0.1'
    implementation 'com.zhihu.android:matisse:0.5.3-beta3'
    implementation 'cards.pay:paycardsrecognizer:1.1.0'

    // Payments gateways SDK
    implementation 'com.eway.payment:android-sdk:1.2.2'
    implementation 'com.stripe:stripe-android:6.1.1'
    implementation 'com.squareup.sdk:point-of-sale-sdk:2.0'
    implementation 'net.authorize:accept-sdk-android:1.0.2'
    implementation(name: 'wepay-android-3.0.0', ext: 'aar')

    //Location Library
    implementation 'io.nlopez.smartlocation:library:3.3.3'
    implementation 'com.tomergoldst.android:tooltips:1.0.10'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
    }
    androidTestImplementation 'androidx.test:rules:1.1.0'
    androidTestImplementation 'com.google.code.findbugs:jsr305:1.3.9'
    androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.android.support', module: 'design'
        exclude group: 'com.android.support', module: 'recyclerview-v7'
    }
}
android {
    configurations.all {
        resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
    }
}

apply plugin: 'com.google.gms.google-services'
// Add the Firebase Crashlytics plugin.
apply plugin: 'com.google.firebase.crashlytics'

【问题讨论】:

标签: android google-play google-play-console


【解决方案1】:

广告依赖来自 firebase,排除广告依赖来自 firebase

exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'

implementation ('com.google.firebase:firebase-core:18.0.3'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }
    implementation ('com.google.firebase:firebase-invites:17.0.0'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }
    implementation ('com.google.firebase:firebase-auth:20.0.3'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }
    implementation ('com.google.firebase:firebase-messaging:21.1.0'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }

implementation ('com.google.firebase:firebase-crashlytics:17.4.1'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }
    implementation ('com.google.firebase:firebase-analytics:18.0.3'){
        exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
    }

【讨论】:

    最近更新 更多