[Solved] Unable to run on android using Qt 5.4
-
It seem the problem is here:
@D/AndroidRuntime( 1569): Shutting down VM
W/dalvikvm( 1569): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
E/AndroidRuntime( 1569): FATAL EXCEPTION: main
E/AndroidRuntime( 1569): java.lang.UnsatisfiedLinkError: Couldn't load : findLibrary returned null
E/AndroidRuntime( 1569): at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/AndroidRuntime( 1569): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 1569): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:252)
E/AndroidRuntime( 1569): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
E/AndroidRuntime( 1569): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
E/AndroidRuntime( 1569): at android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime( 1569): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime( 1569): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
E/AndroidRuntime( 1569): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime( 1569): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime( 1569): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime( 1569): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1569): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1569): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 1569): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1569): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1569): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 1569): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 1569): at dalvik.system.NativeStart.main(Native Method)@Try to load a null library?
-
Hi
Finally found the problem. In the creation of AndroidManifest.xlm file I didn't set any name into Application -> Run field. This have the result to generate the xml with the following settings empty:
@<meta-data android:name="android.app.lib_name" android:value=""/>@
and this cause the error (that was not very clear). Here is needed t set the application name to start.
-
-
My error:
W/System.err(10397): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
W/System.err(10397): at java.lang.Class.classForName(Native Method)
W/System.err(10397): at java.lang.Class.forName(Class.java:217)
W/System.err(10397): at java.lang.Class.forName(Class.java:172)
W/System.err(10397): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
W/System.err(10397): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
W/System.err(10397): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
W/System.err(10397): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(10397): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(10397): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
W/System.err(10397): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
...
...and doesn't found, randomly, same module.
-
As you can read from my first posts here this error (java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable) it isn't critical since it happen using standard Qt examples too. Basically RippleDrawableis a class introduced in android 5, in all older version this error came up but the app start equally than is not the problem.