Problems building android/aab

  • #1, by tobias-althammerThursday, 01. February, 13:50 A month ago
    Just tried to build an exported Android project with Android Studio, the apk/aab compiles but the visionaire player crashes on startup, am I missing something? Any help deeply appreciated, here's the config:

    Visionaire Studio 5.3 Build 1238
    Build game - Android Project - Default settings
    Extract zip
    Open in Android Studio 2022.2.1
    Some project settings are outdated but this shouldn't be the problem
    SDK location corrected in
    clean - rebuild - some depreciations but builds successful
    running on device (Samsung Galaxy Tab A8 tablet and Samsung Galaxy S10 phone, same behaviours)
    player crashes at / loadLibrary function with exception java.lang.NoSuchMethodError
    Failed to register native method; in /data/app/~~SW34Fgk72pQuj2tSzVfQJA==/com.visionaire.player-xzuUHn55zRvn06h-kR8IWA==/base.apk!classes3.dex
    Failed to register methods of org/libsdl/app/SDLActivity] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NoSuchMethodError: no static or non-static method "Lorg/libsdl/app/SDLActivity;.nativeGetVersion()Ljava/lang/String;"] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (] at void java.lang.Runtime.loadLibrary0(java.lang.ClassLoader, java.lang.Class, java.lang.String) (] at void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String) (] at void java.lang.System.loadLibrary(java.lang.String) (] at void (] at void (] at void (] at void, android.os.PersistableBundle) (] at void (] at void, android.os.Bundle) (] at$ActivityClientRecord, android.content.Intent) (] at$ActivityClientRecord,, android.content.Intent) (] at void, android.os.IBinder, (] at void (] at void (] at void$H.handleMessage(android.os.Message) (] at void android.os.Handler.dispatchMessage(android.os.Message) (] at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (] at void android.os.Looper.loop() (] at void[]) (] at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (] at void$ (] at void[]) (]] in call to FindClass] from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class)
    WindowManager win=Window{265971a u0 Splash Screen com.visionaire.player EXITING} destroySurfaces: appStopped=false cleanupOnResume=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0$$ExternalSyntheticLambda11.accept:2 java.util.ArrayList.forEach:1528
    Visionaire.player] Runtime aborting...


    1 Posts

  • #2, by SimonSThursday, 01. February, 15:25 A month ago
    That is already fixed and the platform file should update on its own if you're online.

    Thread Captain

    1578 Posts

Write post