Hi, Are you also able to debug Android successfully? Which version of Qt are you using?
Using Qt 5.14.2 for a while I was able to run things on emulator and device, and then it again started failing, I don't know why. One thing I noticed was that Android ABI always defaults to armv7, and requires manually selecting x86 to run on emulator every time the project is opened. (Project settings, in qmake build steps). With Qt Creator 4.13 beta1 I have a new observation for android setup: With environment variable and JDK set as follows: JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 Opening the Tools->Options->Devices->Android tab it complains: Android SDK installation is missing necessary packages. Do you want to install the missing packages? After first round it seems to have installed ndk-bundle. Android OpenSSL settings had errors and required a click on the download arrow. But it keeps prompting for installation of missing necessary packages. "All essential packages installed for all installed Qt versions." stays red, and I don't know how to fix that. Next I'll try going back to Qt 5.13.1 to see if that behaves better for android. It would be nice to have virtual env like to test things in isolation. Now there seems to be some cross-pollination between my attempts. Maybe I should install a docker image for each Qt/Android version... Cheers, Harri On Mon, Apr 13, 2020 at 3:45 PM Cristian Adam <cristian.a...@qt.io> wrote: > Hi, > > > > I’ve put up a CMake script > <https://gist.github.com/cristianadam/8f2f4b0d5f2c9267a46deeb98a8ec869> > which when executed as cmake -P setup_android.cmake will download OpenJDK > 8 > > and setup the Android SDK / NDK automatically. > > > > In the Android devices dialog set the “JDK Location” to the path to > jdk8u242-b08, and the “Android SDK” path to android-sdk. > > > > I’ve tested it with Qt Creator 4.12 RC on Windows, Linux, and macOS and > works as expected. > > > > Cheers, > > Cristian. > > > > *From:* Qt-creator <qt-creator-boun...@qt-project.org> *On Behalf Of *Assam > Boudjelthia > *Sent:* Friday, 10 April 2020 14:15 > *To:* Christian Gagneraud <chg...@gmail.com>; qt-creator < > qt-creator@qt-project.org> > *Subject:* Re: [Qt-creator] Problem with Android SDK tools and platform > SDK > > > > Hi Christian, > > > ------------------------------ > > *> From:* Qt-creator <qt-creator-boun...@qt-project.org> on behalf of > Christian Gagneraud <chg...@gmail.com> > > > Sent*:* Thursday, April 9, 2020, 9:08 AM > > > *To:* qt-creator > > > *Subject:* [Qt-creator] Problem with Android SDK tools and platform SDK > > > > > Hi there, > > > > > > I've installed Android NDK and Android Studio v3.6.1 (latest). > > > Using Android studio SDK Manager i've installed: > > > - SDK platforms > > > - 28 > > > - 29 > > > - SDK tools: > > > - Build tools 30-rc2 > > > - Command line tools (latest) > > > - Platform tools (29.0.6) > > > > > > When configuring Qtc: > > > JDK: android-studio/jre/ > > > SDK: /home/chgans/Android/Sdk/ (installed by Studio) > > > NDK: /home/chgans/Programs/android-ndk-r21 (installed by me) > > > > > > Now, I have all ticks green except: > > > - SDK tools installed > > > - Plaform SDK installed > > > > > > The AVD and SDK manager tabs are disabled. > > > > > > $ ls Android/Sdk/ > > > build-tools cmdline-tools licenses patcher platforms > > > platform-tools sources > > > $ ls Android/Sdk/platforms/ > > > android-28 android-29$ ls Android/Sdk/*-tools > > > Android/Sdk/build-tools/: > > > 29.0.3 30.0.0-rc2 > > > Android/Sdk/cmdline-tools/: > > > latest > > > chgans@chgans-pc:~$ ls Android/Sdk/*-tools > > > Android/Sdk/build-tools: > > > 29.0.3 30.0.0-rc2 > > > Android/Sdk/cmdline-tools: > > > latest > > > Android/Sdk/platform-tools: > > > adb dmtracedump etc1tool hprof-conv <snip> > > > > > > My setup looks correct but QtC doesn't seem happy. > > > > > > Is there known issues with latest Android Studio, or did i get something > wrong? > > > > > > I never had this problem with previous installs of Qt & Android. > > > > Looking at this it seems that Android SDK introduced a new packages > "cmdline-tools" which offers the same as the old package "tools" and Qt > Creator is looking for "tools" package. So QC would need a fix for this. > Meanwhile, I suggest installing the package "tools" if it's still available > from the sdkmanager and make sure you have the SDK tools directory under > <sdkPath>/tools which has sdkmanager and avdmanager tools. > > > > > > > > Thanks, > > > Chris > > > > Best regards, > > Assam > > > _______________________________________________ > Qt-creator mailing list > Qt-creator@qt-project.org > https://lists.qt-project.org/listinfo/qt-creator > > > _______________________________________________ > Qt-creator mailing list > Qt-creator@qt-project.org > https://lists.qt-project.org/listinfo/qt-creator >
_______________________________________________ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator