[Solved] Unable to run on android using Qt 5.4
-
HI,
i have same problem, but your solutions doesn't work for me. My app start only if deploy the libs with "Deploy local Qt Libraries to temponary directory", but if i Bundle the Qt libraries in APK Bundle, i have the error. -
Hi
Final .apk file created is basically a rar file. Try to rename extension to .rar and open with some tool like 7zip for check the content. Qt libraries are under "libs" folder, if you don't find it this mean there is some problem in apk packaging. -
Hi,
in the lib/armeabi-v7a directory i have all the libs... I don't understant what happen... -
Hi
The error you experiment is the same of mine? Please note in my case it seem the android runtime was looking for an "inexistent" library since the library name label was empty. -
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.
-
The my problem is that doesn't find the library when i deploy the lib in the apk (but if i unzip i see them).
-
ok but from what you deduce the problem is library not found? The error you reported is not connected to your supposition...
-
I have this supposition (maybe i'm wrong) because if i build in other way (deploy in temporary dir) it run
-
Sorry I don't know how to help you. Without additional information is very hard to figure out the problem. Maybe a full reinstallation of all could be a try.
-
I reinstalled, tried also on OSX, nothing on Android. However thanks