+1 vote

I have followed the steps given in the link:
https://github.com/Shin-NiL/Godot-Android-Admob-Plugin

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)

Godot version godot-3.2.4
in Engine by (44 points)

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

1 Answer

0 votes

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

by (66 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.