Insta-crash at startup right after splash screen in any older API emulator in Android Studio up to and including API 19, whether running debug or release. The crash looks like this:
Note the bug seems related to play-services-ads-lite, even when using full play-services-ads. More details:
Android Studio Flamingo | 2022.2.1 Canary 9 Runtime version: 17.0.4.1+0-17.0.4.1b469.62-9127311 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.19.0-26-generic Registry: external.system.auto.import.disabled=true ide.text.editor.with.preview.show.floating.toolbar=false gradle.version.catalogs.dynamic.support=true dependencies { classpath("com.android.tools.build:gradle:8.0.0-alpha09") classpath(kotlin("gradle-plugin", version = "1.8.0-RC"))from build.gradle
implementation("com.google.android.play:app-update-ktx:2.0.1")Note I am not yet using newest play-services-ads beyond 20.6.0 as it doesn't support older APIs, and the app offers support back to API 16. However a test with the latest 21.3.0 or whatever also crashes.
Using gradle 7.6 though also tried the 8.0 betas.
Tried:
This error may not affect actual devices or it may-- I do not have an actual older device to test with so rely on the emulator. But if is the emulator images, perhaps play-services needs to be updated ? Examples:
API 16 emulator image-- includes play services version 9.2.56
API 19 emulator image-- includes play services 20.24.14
The emulators are also reporting missing classes like:
E Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.zza
and
E Could not find class 'android.os.UserManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile
But AFAICT this is not causing a crash like the VerifyError is.
Thanks!
|
||||||
Hello DS,
Michael here and I work along with Teejay.
From your last response I can see that you are still setting the minSdkVersion to 16, would you be able to try and update it to minSdkVersion 19 and see if you will still see the issue? Additionally, can you confirm if you are only encountering this using Android Studio Flamingo Canary 9?
Regards,
|
||||||
Hi DS,
Thank you for your response.
I've tried to modify our sample app for kotlin banner, and applied the configurations that you've added on the file you've provided previously. I was able to apply all the configuration, and when I've tested it, I was able to encounter the crash. However, on the logcat, the crash log that I've encounter is different to the crash logs you provided. But, let me share this to the wider team to further investigate the crashes with this configuration. Rest assured that one of our team will reach out to you.
Regards,
|
||||||
