Android error : com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified

前端 未结 1 1680
情歌与酒
情歌与酒 2021-01-20 03:21

My project android have error when i using admob run in android 5.1 application show log error :

相关标签:
1条回答
  • 2021-01-20 03:54

    Add below line build.gradle

    implementation 'com.google.android.gms:play-services-ads:17.0.0'
    

    If you are using 17+ AdMob sdk you need to specify app id in AndroidManifest.xml file. You can find your app id in Admob App settings

    <meta-data
    android:name="com.google.android.gms.ads.APPLICATION_ID"
    android:value="@string/app_id"/>
    

    after adding above code try uninstalling the app manually and reinstall again without making any changes. Also replace your compile with implementation.

    0 讨论(0)
提交回复
热议问题