[Qt-creator] Deploying to Android device fails
Eike.Ziller at qt.io
Thu Sep 28 09:07:38 CEST 2017
Possibly https://bugreports.qt.io/browse/QTCREATORBUG-18962 ?
> On 27. Sep 2017, at 21:10, Jochen Becher <jochen_becher at gmx.de> wrote:
> I forgot to mention that my development system is Ubuntu 17.04.
> Regards, Jochen
> Am Mittwoch, den 27.09.2017, 21:06 +0200 schrieb Jochen Becher:
>> I just installed an Android development environment. Unfortunately
>> deploying an app to Android devices (physical or virtual) fails. Here
>> are some details:
>> 1. Building, deploying and running a simple "Hello World" project
>> (including some C++ code) from Android studio works for both virtual
>> device on emulator with X86 code and physical ARM device connected
>> 2. Installation in QtCreator 4.4.0 looks reasonable: I entered JDK
>> location (/usr/lib/jvm/java-8-openjdk-amd64), SDK location
>> (/home/jochen/Android/Sdk) and NDK location
>> 12 toolchains were found and two kits created.
>> The virtual device is displayed (7_WSVGA_Tablet_API_17).
>> Issue 1: AVD Manager cannot be started from QtCreator. Error message
>> AVD manager UI tool is not available in the installed SDK tools
>> (version 26.1.1). Use the command line tool "avdmanager" for advanced
>> AVD management.
>> This is not a problem because I can use Android Studio to create
>> virtual devices and I can start the virtual device from QtCreator.
>> 3. Building example "calqlatr" works for both Android kits.
>> 4. Issue 2: Deploying the example fails:
>> Cannot find the android build step.
>> Error while building/deploying project calqlatr (kit: Android for x86
>> GCC 4.9, Qt 5.9.0 for Android x86))
>> When executing step "Deploy to Android device"
>> (Same error message for ARM kit).
>> When I look into Projects / Run Settings the deployment step "Deploy
>> Android device" exists.
>> There is nothing filled into the Run configuration (only empty
>> Executable" is shown) but I assume that is correct for Android
>> isn't it?
>> Any hints?
>> BTW, is it possible that the QtCreator documentation is wrong? In
>> "Deploying Applications to Android Devices" an Ui element "Projects >
>> Build Android APK > Details" is mentioned. I cannot find it and also
>> the screenshot of the details looks completely different from mine
>> which lists "Uninstall previous package", "Reset Default Devices",
>> "Clean Temporary Libraries Directory on Device" and "Install Ministro
>> from APK" only.
>> Issue 3: When I press the button "Clean Temporary Libraries Directory
>> on Device" QtCreator crashes immediately.
>> Regards, Jochen
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
> Qt-creator mailing list
> Qt-creator at qt-project.org
More information about the Qt-creator