Android 错误:com.google.android.gms.persistent E/NetworkScheduler:指定的组件无效

Android error : com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified(Android 错误:com.google.android.gms.persistent E/NetworkScheduler:指定的组件无效)
本文介绍了Android 错误:com.google.android.gms.persistent E/NetworkScheduler:指定的组件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

11-15 01:16:13.645 1143-1143/? E/EGL_emulation: tid 1143: eglCreateSyncKHR(1865): error 0x3004 (EGL_BAD_ATTRIBUTE)
11-15 01:16:13.776 2356-21878/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.

This is content my build.gradle file:

compileSdkVersion 26
    buildToolsVersion '26.0.0'
    defaultConfig {
        applicationId "com.exam"
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 2
        versionName "2.00"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:26.1.0'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:design:26.1.0'
    
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.squareup.okhttp3:okhttp:3.5.0'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.android.support:percent:26.1.0'
    compile 'com.squareup.retrofit2:retrofit:2.2.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.github.rahatarmanahmed:circularprogressview:2.5.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.android.support:recyclerview-v7:26.1.0'
    compile 'com.afollestad.material-dialogs:commons:0.9.5.0'
    compile 'com.afollestad.material-dialogs:core:0.9.5.0'
    compile 'org.jsoup:jsoup:1.10.2'
    compile 'com.google.firebase:firebase-ads:17.1.0'
    compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'
    compile 'agency.tango.android:material-intro-screen:0.0.5'
    compile 'com.google.firebase:firebase-core:16.0.4'
    compile 'cn.pedant.sweetalert:library:1.3'
    compile 'com.squareup.okhttp3:logging-interceptor:3.8.0'
    compile 'com.github.lzyzsd:circleprogress:1.2.1'
    compile 'com.github.hotchemi:android-rate:1.0.1'
}

apply plugin: 'com.google.gms.google-services'

I tried many solution but it not work Thank for any can fix it. Please help me!

解决方案

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.

这篇关于Android 错误:com.google.android.gms.persistent E/NetworkScheduler:指定的组件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)