How to deploy the Qt program to android device?
-
My environment is win7 os, 64bit, setup the "Qt 5.1.0 for Android (Windows 32-bit, 716 MB)". When I click the arrow button to run the release program, that is always run in the emulator.
If I setup the app_debug.apk that was generated by clicking the arrow button in my android device, that can not run. The app only use the QLabel to show "Hello world" content.
What is wrong? -
WIthout an error message, it could be anything. Usb debugging could be disabled or your smartphone has a lower API level than your android project. There are several options
-
Usb debugging is enabled. My smartphone is android 4.1.6, then I set the target API level to 16, append the content "<uses-sdk android:minSdkVersion="10"/>" in the AndroidManifext.xml file.
The *.apk file is generated by clicking the arrow button in the Qt Creator, then setup it by other tools. Is this the right way to do it?
The first time I develop the android app in Qt, could you provide some possible solutions?
-
Yes, thats correct, but what is the actual error message? Qt creator usually shows something in the output
Btw, android 4.1.6 does not exist. Do you have a china phone/tablet? They sometimes have this wrong android version.
-
Yes, I use the china phone. When I run the program in my phone, it always popup the error "The program is aborted because encountered a fatal error".
-
Can you try this test APK I made?
https://mega.co.nz/#!pp8EQCiI!TgGvuE7BL4LaLar9jkwYaivEP04FKO6lrtUS6t6s3d4