[Qt-creator] Problem with Android SDK tools and platform SDK

Cristian Adam cristian.adam at qt.io
Mon Apr 13 14:44:36 CEST 2020


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-bounces at qt-project.org> On Behalf Of Assam Boudjelthia
Sent: Friday, 10 April 2020 14:15
To: Christian Gagneraud <chgans at gmail.com>; qt-creator <qt-creator at qt-project.org>
Subject: Re: [Qt-creator] Problem with Android SDK tools and platform SDK

Hi Christian,

________________________________
> From: Qt-creator <qt-creator-bounces at qt-project.org<mailto:qt-creator-bounces at qt-project.org>> on behalf of Christian Gagneraud <chgans at gmail.com<mailto:chgans at 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 at 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 at qt-project.org<mailto:Qt-creator at qt-project.org>
https://lists.qt-project.org/listinfo/qt-creator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200413/3ba2125c/attachment.html>


More information about the Qt-creator mailing list