Android JNI ERROR crash on launch, after switching from 3.4 to 3.5 codebase

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

I’m experiencing crashes on launch after upgrading to 3.5 codebase.
Digging through adb logcat,
seems like some issue in Java and/or JNI (that I’m not very familiar with).
If anyone has suggestions on how to tackle this, I would greatly appreciate it.
Thank you!

11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663] JNI DETECTED ERROR IN APPLICATION: JNI GetStaticObjectField called with pending exception java.lang.NoSuchFieldError: no "Lorg/godotengine/godot/GodotIO;" field "io" in class "Lorg/godotengine/godot/Godot;" or its superclasses
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void org.godotengine.godot.GodotLib.initialize(android.app.Activity, org.godotengine.godot.Godot, android.content.res.AssetManager, org.godotengine.godot.GodotIO, org.godotengine.godot.utils.GodotNetUtils, org.godotengine.godot.io.directory.DirectoryAccessHandler, org.godotengine.godot.io.file.FileAccessHandler, boolean) (GodotLib.java:-2)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void org.godotengine.godot.Godot.initializeGodot() (Godot.java:587)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void org.godotengine.godot.Godot.onCreate(android.os.Bundle) (Godot.java:723)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void androidx.fragment.app.Fragment.performCreate(android.os.Bundle) (Fragment.java:2949)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void androidx.fragment.app.FragmentStateManager.create() (FragmentStateManager.java:475)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void androidx.fragment.app.FragmentStateManager.moveToExpectedState() (FragmentStateManager.java:278)
11-30 18:42:09.602  9949  9949 F ld.game.androi: runtime.cc:663]   at void androidx.fragment.app.FragmentManager.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManager.java:2189)
:bust_in_silhouette: Reply From: hermanboykun

I too get this error, is there any solution to this?

Unfortunately I didn’t have enough time to dig through the code and figure this out at the moment so I just rolled back to 3.4 for now. If you happen to stumble upon a fix please let me know as well. Thanks!

dev.monkey | 2023-01-20 18:26