Android app crashing due to Admob

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

I have followed the steps given in the link:

When i installed and opened the app in my android phone, the app got crashed and i got the below message in logcat. Can anyone please help me solve this problem ?

java.lang.VerifyError: Verifier rejected class shinnil.godot.plugin.android.godotadmob.GodotAdMob: void shinnil.godot.plugin.android.godotadmob.GodotAdMob.(org.godotengine.godot.Godot) failed to verify: void shinnil.godot.plugin.android.godotadmob.GodotAdMob.(org.godotengine.godot.Godot): [0x1C] register v3 has type Reference: org.godotengine.godot.Godot but expected Reference: android.app.Activity (declaration of ‘shinnil.godot.plugin.android.godotadmob.GodotAdMob’ appears in /data/app/com.abhinnav.org-BbSFOK9W0UHvJdAeoi3nAg==/base.apk)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at java.lang.Class.forName(Class.java:379)
at org.godotengine.godot.plugin.GodotPluginRegistry.loadPlugins(GodotPluginRegistry.java:176)
at org.godotengine.godot.plugin.GodotPluginRegistry.(GodotPluginRegistry.java:72)
at org.godotengine.godot.plugin.GodotPluginRegistry.initializePluginRegistry(GodotPluginRegistry.java:104)
at org.godotengine.godot.Godot.onCreateView(Godot.java:583)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)

I have the same problem after updating my project from Godot 3.2.3 to 3.3, anyone know how to solve this ?

asetyowatir | 2021-04-23 04:31

:bust_in_silhouette: Reply From: asetyowatir

for anyone having this problem, maybe after updating the Godot version you can see the fork’s diff from choyg :

https://github.com/Shin-NiL/Godot-Android-Admob-Plugin/compare/main…choyg:main ,

and this is a new release for Godot 3.3:
https://github.com/choyg/Godot-Android-Admob-Plugin/releases/tag/v5.0.0