Error building Qt for android
Vasudha last edited by Vasudha
I'm trying to build Qt for android on windows platform.
I'm getting this error on running the application.
In compile output this is displayed-
Error while building/deploying project analogclock (kit: Android for ANDROID TARGET_ARCH=armeabi-v7a (GCC 4.9, Qt 5.7.1)) When executing step "Deploy to Android device"
I tried this solution-
but still this error flags.
Any help would be appreciated. :)
@Vasudha Is there a reason why you build Qt for Android?
There are already ready to use builds available.
@jsulm If I wish to run an app (made in Qt) on my android phone, how else to do that?
@Vasudha As I already said there is already ready to use Qt for Android, just install it.
Use Qt online installer and select Qt for Android there.
@jsulm I did install the ready to use Qt for Android (due to which I see the android kits available) from here qt-opensource-windows-x86-android-5.7.1.exe
While trying to run the app on this install I get the above error.
@Vasudha What exactly is the error?
This: "Error while building/deploying project analogclock (kit: Android for ANDROID TARGET_ARCH=armeabi-v7a (GCC 4.9, Qt 5.7.1)) When executing step "Deploy to Android device"" - only says there was an error during deployment. What is the device you're trying to deploy to?
Please see this image.
My device is onePlus3, though it gave this same error on samsung device too.
@Vasudha I think I already had such problem: try to disable "Developer options" (or how it is called in English) and then enable them again. If it does not help try to disable USB-Debugging and then enable it again.
Your device should actually work as it supports the ABI for which you're building.
@jsulm I still get the same error.
@Vasudha Strange, with my Samsung Galaxy S6 it works. You could try to set up an emulator first and use it.
@jsulm Can you tell me the steps by which you installed?
I did the following-
- Download and install ready to build qt for android.
- Download jdk, sdk, ndk, apache ant and set the paths in tools->options->devices->android.
- Try building an android app using the available android kit.
Is that it?
@Vasudha Yes, that is what I did.
In your case the problem is deployment to the target device not build the app, right?