// Firebase core
implementation 'com.google.firebase:firebase-core:16.0.6'
// cloud messaging (Amazon uses different solution)
googleImplementation 'com.google.firebase:firebase-messaging:17.3.4'
samsungImplementation 'com.google.firebase:firebase-messaging:17.3.4'
amazonCompileOnly files('libs/amazon-device-messaging-1.0.1.jar')
// android support library components
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.transition:transition:1.0.1'
implementation 'androidx.annotation:annotation:1.0.1'
implementation 'com.google.android.material:material:1.0.0'
implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
// google Analytics service libraries
implementation 'com.google.android.gms:play-services-analytics:16.0.6'
// RX libraries
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
// facebook share library
implementation 'com.facebook.android:facebook-share:4.40.0'
// Ad networks
freeImplementation 'com.google.firebase:firebase-ads:17.1.2'
// Amazon Ad network
freeImplementation files('libs/amazon-ads-5.9.0.jar')
// inMobi network
freeImplementation 'com.inmobi.monetization:inmobi-ads:7.2.0'
freeImplementation 'com.google.ads.mediation:inmobi:7.2.1.0'
freeImplementation 'com.squareup.picasso:picasso:2.5.2'
// AppLovin
freeImplementation 'com.applovin:applovin-sdk:8.1.4'
freeImplementation 'com.google.ads.mediation:applovin:8.1.4.0'
// In-App billing libraries
amazonImplementation files('libs/in-app-purchasing-2.0.76.jar')
barnesNobleImplementation files('libs/FortumoInApp-android-9-4-2.jar')
// Firebase core
implementation 'com.google.firebase:firebase-core:16.0.9'
// cloud messaging (Amazon uses different solution)
googleImplementation 'com.google.firebase:firebase-messaging:18.0.0'
samsungImplementation 'com.google.firebase:firebase-messaging:18.0.0'
amazonCompileOnly files('libs/amazon-device-messaging-1.0.1.jar')
// android support library components
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.transition:transition:1.0.1'
implementation 'androidx.annotation:annotation:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.0.0"
// google Analytics service libraries
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
// RX libraries
implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
// facebook share library
implementation 'com.facebook.android:facebook-share:5.0.1'
// Ad networks
freeImplementation 'com.google.firebase:firebase-ads:17.2.1'
// Amazon Ad network
freeImplementation files('libs/amazon-ads-5.9.0.jar')
//freeImplementation 'com.amazon.android:mobile-ads:5.9.0'
// inMobi network
freeImplementation 'com.inmobi.monetization:inmobi-ads:7.2.2'
freeImplementation 'com.google.ads.mediation:inmobi:7.2.2.1'
freeImplementation 'com.squareup.picasso:picasso:2.5.2'
// AppLovin
//freeImplementation 'com.applovin:applovin-sdk:8.1.4'
//freeImplementation 'com.google.ads.mediation:applovin:8.1.4.0'
// In-App billing libraries
amazonImplementation files('libs/in-app-purchasing-2.0.76.jar')
barnesNobleImplementation files('libs/FortumoInApp-android-9-4-2.jar')
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/tpNAamd9s4Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/MZm6w000000000000000000000000000000000000000000000PT9E9300K1BHncSQTtCLSaNZWrfZew%40sfdc.net.
dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.gms:play-services-ads:17.2.1'
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.gms:play-services-ads:18.0.0'
}
Hello there,
Which version of the Android Studio are you currently using? And are you having the same issue when building on an actual device? If so, can you provide us with complete device logs for us to debug this further?
Regards,
Deepika Uragayala
Mobile Ads SDK Team
06-27 21:46:10.492 1284-1473/system_process I/ActivityManager: START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.gms.example.bannerexample/.MyActivity} from pid 1382
--------- beginning of /dev/log/main
06-27 21:46:10.512 1171-1486/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3637248
06-27 21:46:10.512 1284-1324/system_process W/NetworkManagementSocketTagger: setKernelCountSet(10045, 1) failed with errno -2
06-27 21:46:10.532 2149-2149/com.google.android.gms.example.bannerexample W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 9256030
06-27 21:46:10.532 2149-2149/com.google.android.gms.example.bannerexample W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 9256030
06-27 21:46:10.532 2149-2149/com.google.android.gms.example.bannerexample I/Ads: This request is sent from a test device.
06-27 21:46:10.542 2149-2593/com.google.android.gms.example.bannerexample W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 9256030
06-27 21:46:10.542 1382-1382/com.android.launcher D/EGL_emulation: eglMakeCurrent: 0x8eb3400: ver 2 0
06-27 21:46:10.542 1382-1382/com.android.launcher D/OpenGLRenderer: Flushing caches (mode 1)
06-27 21:46:10.552 1382-1382/com.android.launcher D/EGL_emulation: eglMakeCurrent: 0x8eb3400: ver 2 0
06-27 21:46:10.552 2149-2588/com.google.android.gms.example.bannerexample W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 9256030
06-27 21:46:10.562 2149-2149/com.google.android.gms.example.bannerexample D/EGL_emulation: eglMakeCurrent: 0x8f882e0: ver 2 0
06-27 21:46:10.562 2149-2149/com.google.android.gms.example.bannerexample E/EGL_emulation: tid 2149: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
06-27 21:46:10.562 2149-2149/com.google.android.gms.example.bannerexample W/HardwareRenderer: Backbuffer cannot be preserved
06-27 21:46:10.572 1382-1382/com.android.launcher D/OpenGLRenderer: Flushing caches (mode 0)
06-27 21:46:10.572 1284-1968/system_process W/ActivityManager: Permission Denial: getTasks() from pid=2149, uid=10045 requires android.permission.GET_TASKS
06-27 21:46:10.582 2149-2267/com.google.android.gms.example.bannerexample E/Ads: Derive quality signals error.
java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: android.content.pm.PackageInfo.requestedPermissionsFlags
at com.google.android.gms.internal.ads.zzbbr.get(Unknown Source)
at com.google.android.gms.internal.ads.zzcvb.zza(Unknown Source)
at com.google.android.gms.internal.ads.zzcvd.call(Unknown Source)
at com.google.android.gms.internal.ads.zzbbe.zzf(Unknown Source)
at com.google.android.gms.internal.ads.zzbar.zza(Unknown Source)
at com.google.android.gms.internal.ads.zzbau.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.NoSuchFieldError: android.content.pm.PackageInfo.requestedPermissionsFlags
at com.google.android.gms.internal.ads.zzawm.zzah(Unknown Source)
at com.google.android.gms.internal.ads.zzawm.zzvf(Unknown Source)
at com.google.android.gms.internal.ads.zzawn.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
06-27 21:46:10.592 2149-2151/com.google.android.gms.example.bannerexample D/dalvikvm: GC_CONCURRENT freed 390K, 4% free 13559K/14023K, paused 0ms+1ms
06-27 21:46:10.622 1284-1314/system_process I/ActivityManager: Displayed com.google.android.gms.example.bannerexample/.MyActivity: +104ms
06-27 21:46:10.622 2149-2149/com.google.android.gms.example.bannerexample I/Ads: Ad failed to load : 0
06-27 21:46:10.622 1284-1965/system_process W/InputManagerService: Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@a10fefa0 (uid=10021 pid=1382)
06-27 21:46:11.202 1284-1324/system_process W/NetworkManagementSocketTagger: setKernelCountSet(10021, 0) failed with errno -206-27 22:10:47.512 16906-17206/com.google.android.gms.example.bannerexample W/GooglePlayServicesUtil: Google Play services out of date. Requires 12451000 but found 9256030
What is the progress in this case?
In version 18.2.0 it is still the same.
You can read from the stack trace that there is no RequestPermissionsFlags field, that's because the field has been added in API level 16.
Source: https://developer.android.com/reference/android/content/pm/PackageInfo#requestedPermissionsFlags
Please fix it if you really support API 14+