Godot Deploy Android Initialize Error

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

Hello. I wants to deploy a project into my Android phone. However, the game stop with error directly after the game was initialized. Logcat below shows the error when the game is closed by error.

W/dalvikvm(25739): VFY: unable to resolve static method 1286: Landroid/os/VibrationEffect;.createOneShot (JI)Landroid/os/VibrationEffect;
E/dalvikvm(25739): Houdini dlopen("/data/app-lib/org.godotengine.spaceship-1/libgodot_android.so") failed: Can't load ARM library
W/dalvikvm(25739): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/godotengine/godot/GodotLib;
W/dalvikvm(25739): threadid=1: thread exiting with uncaught exception (group=0x4c7b7160)
E/AndroidRuntime(25739): FATAL EXCEPTION: main
E/AndroidRuntime(25739): Process: org.godotengine.spaceship, PID: 25739
E/AndroidRuntime(25739): java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app-lib/org.godotengine.spaceship-1/libgodot_android.so" has unexpected e_machine: 40
E/AndroidRuntime(25739):        at java.lang.Runtime.loadLibrary(Runtime.java:364)
E/AndroidRuntime(25739):        at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime(25739):        at org.godotengine.godot.GodotLib.<clinit>(GodotLib.java:46)
E/AndroidRuntime(25739):        at org.godotengine.godot.Godot.initializeGodot(Godot.java:506)
E/AndroidRuntime(25739):        at org.godotengine.godot.Godot.onCreate(Godot.java:673)
E/AndroidRuntime(25739):        at android.app.Activity.performCreate(Activity.java:5235)
E/AndroidRuntime(25739):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(25739):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2188)
E/AndroidRuntime(25739):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2275)
E/AndroidRuntime(25739):        at android.app.ActivityThread.access$800(ActivityThread.java:138)
E/AndroidRuntime(25739):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236)
E/AndroidRuntime(25739):        at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(25739):        at android.os.Looper.loop(Looper.java:149)
E/AndroidRuntime(25739):        at android.app.ActivityThread.main(ActivityThread.java:5061)
E/AndroidRuntime(25739):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(25739):        at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(25739):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
E/AndroidRuntime(25739):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
E/AndroidRuntime(25739):        at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  603):   Force finishing activity org.godotengine.spaceship/com.godot.game.GodotApp

Anyone please help.

Can anyone give me any clue on how to solve it :frowning:
This is just my first testing project but cannot deploy into android phone.

pengyou | 2020-05-22 17:53

Can you export for web? Does it give any warnings?

Becbunzen | 2020-06-02 18:27

Thank you for reading my question.
The error was due to export app doesn’t contain the architecture of my android device. After setting it at export template, things run smoothly.
By the way if you don’t mind, please help my question about scons build template at this page. Thanks again for your approach.

pengyou | 2020-06-03 10:05