Android error : com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified(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:指定的组件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android 错误:com.google.android.gms.persistent E/NetworkScheduler:指定的组件无效
基础教程推荐
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01