NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/InterstitialAd

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By quanghuy6698

I’m trying to export and run Godot project on Android emulator, but after splash screen, it immediately crash.

I’m using ShinNil plugin (GitHub - Shin-NiL/Godot-Android-Admob-Plugin: Android AdMob plugin for Godot Game Engine 3.2 or higher) to display ads.

Here is the logcat message. I’ve tried to find this error on internet but no solutions work. Am I missing something?

Process:, PID: 9674
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/InterstitialAd;
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

Does anyone has faced this issue before, pls help me out.

I got similar issue but for locationservices, I already changed ‘implement’ to ‘api’ on build.gradle’s depencies, changed from Android 23 to 28, but nothing happen.

Decemberfrost | 2023-02-12 08:16