Problems building android/aab

  • #1, by tobias-althammerThursday, 01. February, 13:50 10 months 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 local.properties
    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 SDL.java:73 / loadLibrary function with exception java.lang.NoSuchMethodError
    Failed to register native method org.libsdl.app.SDLActivity.nativeGetVersion()Ljava/lang/String; in /data/app/~~SW34Fgk72pQuj2tSzVfQJA==/com.visionaire.player-xzuUHn55zRvn06h-kR8IWA==/base.apk!classes3.dex
    Failed to register methods of org/libsdl/app/SDLActivity
    java_vm_ext.cc:591] 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;"java_vm_ext.cc:591] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (Runtime.java:-2)
    java_vm_ext.cc:591] at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1126)
    java_vm_ext.cc:591] at void java.lang.Runtime.loadLibrary0(java.lang.ClassLoader, java.lang.Class, java.lang.String) (Runtime.java:1080)
    java_vm_ext.cc:591] at void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String) (Runtime.java:1003)
    java_vm_ext.cc:591] at void java.lang.System.loadLibrary(java.lang.String) (System.java:1661)
    java_vm_ext.cc:591] at void org.libsdl.app.SDL.loadLibrary(java.lang.String) (SDL.java:73)
    java_vm_ext.cc:591] at void org.libsdl.app.SDLActivity.loadLibraries() (SDLActivity.java:182)
    java_vm_ext.cc:591] at void org.libsdl.app.SDLActivity.onCreate(android.os.Bundle) (SDLActivity.java:230)
    java_vm_ext.cc:591] at void android.app.Activity.performCreate(android.os.Bundle, android.os.PersistableBundle) (Activity.java:8657)
    java_vm_ext.cc:591] at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:8636)
    java_vm_ext.cc:591] at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1417)
    java_vm_ext.cc:591] at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:4165)
    java_vm_ext.cc:591] at android.app.Activity android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.app.servertransaction.PendingTransactionActions, android.content.Intent) (ActivityThread.java:4340)
    java_vm_ext.cc:591] at void android.app.servertransaction.LaunchActivityItem.execute(android.app.ClientTransactionHandler, android.os.IBinder, android.app.servertransaction.PendingTransactionActions) (LaunchActivityItem.java:101)
    java_vm_ext.cc:591] at void android.app.servertransaction.TransactionExecutor.executeCallbacks(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:135)
    java_vm_ext.cc:591] at void android.app.servertransaction.TransactionExecutor.execute(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:95)
    java_vm_ext.cc:591] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:2584)
    java_vm_ext.cc:591] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
    java_vm_ext.cc:591] at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:226)
    java_vm_ext.cc:591] at void android.os.Looper.loop() (Looper.java:313)
    java_vm_ext.cc:591] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:8810)
    java_vm_ext.cc:591] at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
    java_vm_ext.cc:591] at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:604)
    java_vm_ext.cc:591] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1067)
    java_vm_ext.cc:591]
    java_vm_ext.cc:591] in call to FindClass
    java_vm_ext.cc:591] 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 caller=com.android.server.wm.WindowState.onExitAnimationDone:6226 com.android.server.wm.ActivityRecord$$ExternalSyntheticLambda11.accept:2 java.util.ArrayList.forEach:1528 com.android.server.wm.ActivityRecord.onAnimationFinished:8902 com.android.server.wm.WindowContainer.doAnimationFinished:3570 com.android.server.wm.WindowContainer.onAnimationFinished:3582 com.android.server.wm.Task.onAnimationFinished:8938
    Visionaire.player runtime.cc:691] Runtime aborting...

    Newbie

    1 Posts


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

    Thread Captain

    1593 Posts

Write post