0 votes

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.

in Engine by (72 points)
edited by

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

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

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.

Please log in or register to answer this question.

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.