Android, Qt5.1, Debian
Hi. In the past I have developed with Necessitas without any problem.
I have removed Necessitas to start to develop with Qt 5.1. When I try to deploy an application for Android I obtain this error: "/Dati/Qt/Android/apache-ant-1.9.2/bin/ant clean debug' failed.Exit code: 1".
What can I do to resolve the problem?
Could be related to some missing/wrong jdk in your android configuration. It should be openjdk 6.
This is my current configuration:
!http://www.denisgottardello.it/ant.jpeg(qtcreator -> options -> android)!
Is a problem related to a too updated ant version?
When Im reading this page http://openjdk.java.net/install/, I see that the package openjdk 1.6.0 doesnt look to be for debian, but I guess thats not the source of the error. I also use ant 1.9.2 btw.
The main issue might be that your java location is wrong.
It should be /usr/lib/jvm/java-1.6.0-openjdk-i386
Thanks a lot. Now my program is working in emulator but not in my mobile. When i try to install it I obtain the error: "There is a problem parsing the package". Do you know what is means?
I dont exactly know what it means. But according to google, you should activate "Unknown sources" in the security settings of android. This prevents installing apks that arent from the play store.
Probably has happened a problem copying the application.
The application has been installed correctly but when I try to start it in my mobile I obtain the error: "Your application encountered a fatal error and cannot continue."
I have uninstalled Ministro and made clean the mobile.
Is it a permissions error?
What is your device?
Lg P990, Android 2.3.7, kernel 22.214.171.124-cyanogenmod.
With Necessitas all has worked well.
Ok, thought it might be an armv6 cpu. Do you know how to use adb logcat? It might give you more information on what happens when you run the app.
By surfing in the forum I have found another discussion about this problem. Do you know if there is a way to download the android_armv6 libraries?
Is there an easy way to build them by myself?
Actually you dont have an armv6 device. Your phone runs an tegra 2 chipset which supports the armv7 instruction set. So the issue arent the libs I think. Try to use "adb logcat" and see the complete error log.
Reading this table
the requested api level from my mobile is 10. Now the application works in my mobile correctly (not in the emulator but is not important).
Now it's a very portable application instead of Necessitas - Ministro.
The next step is Mac OS X. Thanks a lot.