Настройки android содержат ошибки qt

I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0'. I have updated to 'QT version 5.10'. This Set up is done on Ubuntu 16.04.

Followed link Getting Started with QT Installation.

I am always getting Error message «Android Settings have error» in Qt Creator->Tools->Options->Devices->Android.

QT Android Installation Issue

Because of above issue i am not able to build application for Android.

I have recently updated my Android sdk, I am able to build and run Sample application from Android Studio, indicating that SDK instalation is working properly. I am using Android SDK tools 26.1.1. Please check bellow screen shots.

Android Studio SDK manager

Android SDK build tools Installed.
enter image description here

Android SDk platforms installed
enter image description here

Already gone through different links on Stack Overflow and QT forum, All are Suggesting downgrade of Android SDK tools(Due to QT Known bug), but none of the solution is working for me. I know there are few known bugs building Android application with QT 5.9 and Qt Creator version 4.0. I guess It is resolved, as same set up is working fine on Windows 10.

QT Creator wont list any available Android Build SDKs
QT Android Installation error

Please help if anybody here resolved same issue.

cbuchart's user avatar

cbuchart

10.7k8 gold badges50 silver badges91 bronze badges

asked Jan 10, 2018 at 14:10

Swapnil's user avatar

2

I just found this bugreport, where in the comments can be found

The native ‘sdkmanager’ tool can not update packages on windows and it fails with JDK 9 and these issues cascades to Qt Creator also.

I just tried installing JDK 8 and changing the path, and after reopening the settings menu it had worked!

answered Jan 13, 2018 at 1:05

Vesafary's user avatar

VesafaryVesafary

3211 gold badge2 silver badges3 bronze badges

7

After lot of effort I am able to fix this issue, thanks to Mohammad Kanan, Vesafary who’s answer made me get closer to Answer, Actual issue resolved with the following steps. It may be helpful who are facing the same issue In Ubuntu or may work on other platforms as well.

  1. First Step is (as most of the answers suggest) changed from JDK 9 to JDK 8. I am using Java version «1.8.0_152».
  2. Step 1 didn’t help me (Qt creator Persist some Settings), so i removed complete Qt 5.8,5.9,5.10 installation (Using Qt Maintainace tool) and following 2 links
    Uninstall Qt Completely, Uninstall Qt Creator.

and did Instalation again. May be your problem get resolved at this step.

  1. Step 2 also didn’t help in my case, QT Creator still persist few settings and need to reset Qt creator settings. That can be done by deleting data in this folder

    ~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

path may be different in different System and OS. following links will be helpful in this case.

Creator FAQ

Stack Overflow Qt Settings 1

Stack Overflow Qt Settings 2

Now i am able to build and run android application.

answered Feb 25, 2018 at 8:24

Swapnil's user avatar

SwapnilSwapnil

2,4014 gold badges26 silver badges48 bronze badges

2

I am using the answer box to show you how it works for me, one last comment: I don’t install NDK 16 .. try remove it from Android manager; while (For Qt) install seperately NDK 10e (this was a Qt recommendation already).
enter image description here

And Qt configuration side:
enter image description here

enter image description here

answered Jan 19, 2018 at 19:26

Mohammad Kanan's user avatar

Mohammad KananMohammad Kanan

4,38210 gold badges23 silver badges47 bronze badges

0

«Platform SDK installed» requires a working a sdkmanager command.

If you have the Platform SDK installed, try running the sdkmanager command directly.

This is $ANDROID_SDK_ROOT/tools/bin/sdkmanager. On my Linux system this was in $HOME/Android/Sdk/tools/bin/sdkmanager.

The typically issue is

  • You need to install JDK 8 properly (note that JDK 9, JDK 10 and JDK 11 will not work!)

If you have installed a newer JDK you will need to downgrade to JDK 8. Either OpenJDK or Oracle will work, but it needs to be JDK 8.

Work thru any remaining issues with the sdkmanager command line, then, once that’s done, you should find Qt Creator to be happy again.

References:

  • https://developer.android.com/studio/write/java8-support
  • https://issuetracker.google.com/issues/67495440

answered Oct 3, 2018 at 20:33

Stephen Quan's user avatar

Stephen QuanStephen Quan

20.7k4 gold badges83 silver badges73 bronze badges

Thanks
I had the same problem, using Debian Buster (sid) with QtCreator 4.6.2 with Qt5.10.1

Go into ~/.config and wipe all the qtcreator settings, then start again specifying jdk.8
then the paths to the Android SDK and then the NDK.

It then works and the dumb SDK platform not installed error does not occur. :)

Out of interest I tried wiping everything ~/.config/qtcreator* and then specifying jdk10. Does not work as before.

If you then change to jdk8, it still does not work.
You have to close QtCreator, wipe all the configs, reopen and choose it again, whereon it will work.

answered Jul 4, 2018 at 15:20

MickG's user avatar

MickGMickG

212 bronze badges

1

I just had the exact same symptoms as the OP. Just that unlike the OP, I was using Qt Creator 4.8.0, as provided in the Ubuntu 19.10 repositories.

Symptoms

The relevant part from the Qt Creator self-check list is:

✓  SDK tools installed.
X  Platform SDK installed.

An additional symptom was that the «SDK Manager» tab below had this message:

SDK manager is not available with the current version of SDK tools. Use Native SDK Manager.

Cause and Fix

The reason for this issue was a wrong version of SDK tools. That wrong version is recognized («SDK tools installed.») but cannot be utilized by Qt Creator to detect which platform SDK is installed or to install new ones.

In my case, I had simply downloaded the latest version, provided as commandlinetools-linux-*_latest.zip on the Android Studio download page. That version introduced changes that are not backwards compatible with the interface of earlier versions that Qt Creator is expecting. That new package is indeed quite different: it has a different name (commandlinetools vs. sdk-tools), expects to be in a different place etc..

To solve this, download and install «Android SDK Tools 26.1.1» (rev. 4333796) as follows, supplying your own Android SDK directory of course:

cd /opt/android-sdk/
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip

That fixed all the symptoms described above.

answered May 28, 2020 at 20:18

tanius's user avatar

taniustanius

13.2k3 gold badges49 silver badges62 bronze badges

you do not need to wipe the configs for qt. simply install the latest of jdk 8 from here -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

next select the jdk location in the options and then toward the bottom select the sdk manager tab. Click the update installed button and it should show a window with a list of licenses you need to agree to.

The problem lies with jdk 9 and up. For some odd reason it doesn’t show the license agreements and doesn’t continue beyond that point. The fix is sticking with jdk8

answered Sep 11, 2018 at 10:58

CecilMerrell aka bringrainfire's user avatar

OK, after many many hours try-out I finally find out how we can fix it.

  • Download and use Android NDK r10e separately (don’t install it through SDK Manager)
  • Download and use Android SDK without Android Studio (download android tools from official site) Qt Preferences will installs all needed packages (build tools , platform tools, sdk tools, platform android-28)
  • Install and use Java JDK 8 (not newer)

Please note that installing SDK packages through Android Studio will not be detectable by Qt

answered Oct 9, 2018 at 21:27

S.M.Mousavi's user avatar

S.M.MousaviS.M.Mousavi

4,9037 gold badges44 silver badges58 bronze badges

In my case I had red crosses for
SDK tools installed.
and for
Platform SDK installed.

To resolve it I needed to download android sdk tools from https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html

file was tools_r25.2.5-linux.zip

I placed extracted tools folder in sdk folder.
My setup now works only with open-jdk-8
Now I can deploy qml apps on my S10

answered Apr 16, 2020 at 16:35

Marcin Snieg's user avatar

Linux:

The proposed solutions did not work for me.

I already had Java 8 and with Qt 5.12 installed the latest SDK and NDK are supposed to work (should work since Qt 5.9).

After hours of fiddling, reinstalling Qt and Java, removing configs, downloading older NDKs and all, it still did not work.

My mistake was that I unpacked SDK and NDK as root into a read-only location for the user. After chowning the folder to the my normal user, Creator found everything and worked as expected.

So also check, if the user running Qt Creator owns the folder containing SDK and NDK. It’s a quick check that might prevent you from deleting your configs. :)

Edit: In August 2019, I added a patch to Qt Creator, checking for this partiicular case and reporting an error accordingly.
https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=4ca3bd4d0f336f7055080e78849c0607ba99843c

answered Feb 5, 2019 at 15:46

To add on to the accepted answer of needing JDK 8 — if you already have a newer version of Java running, you can easily install a standalone version 8 alongside it. Use the installer from https://adoptopenjdk.net/ and select v8.0. Make sure to update your preferences to point to the Java 8 and things should work.

answered Apr 15, 2020 at 22:57

67hz's user avatar

67hz67hz

3813 silver badges7 bronze badges

In my case, I download the separate SDK download tool, android-sdk_r24.4.1-windows, and Installed the SDK again. the Android SDK Platform-tools is a part of Android SDK Manager.and I resolved the problem.

answered Apr 1, 2021 at 3:27

Beacher Harry's user avatar

I’ve been experiencing this issue for 2 months. Qt Creator indicates that ndk path and directory have issues though the messages are confusing.

This happens with every Android Kit.

In Qt Creator, looking at Options -> Devices -> Android, Android Settings display two error messages with red ‘X’ on the left side:

  1. «X Android NDK directory structure is correct.»
  2. «X Android NDK installed into a path without spaces.»

I don’t have no idea what message 1 is trying to tell me, here is the structure of the directory:

.
├── build
├── meta
├── ndk-build
├── ndk-depends
├── ndk-gdb
├── ndk-which
├── NOTICE
├── NOTICE.toolchain
├── prebuilt
├── python-packages
├── README.md
├── shader-tools
├── simpleperf
├── sysroot
├── toolchains
└── wrap.sh

Regarding the second error message this is the path:

/home/user/Android/android-ndk-r18b

I can’t see how could be a space in the above path.

When I try to build any Project with Android Kit, I receive the following error at the output:

opt/Qt/5.12.0/android_armv7/include/QtCore/qglobal.h:45:12: fatal error: 'type_traits' file not found

Info:

  • Ubuntu 18.04;
  • Qt 5.12.0;
  • Qt Creator 4.8;

Вопрос:

Я разрабатываю приложение для платформы Qt Cross для Android, недавно я обновил Qt-создатель и установил новую версию Qt. Я использую 'Qt Creator version 4.5.0'. Я обновился до 'QT version 5.10'. Эта настройка выполняется на Ubuntu 16.04.

Следующая ссылка Начало работы с установкой QT.

Я всегда получаю сообщение об ошибке “Настройки Android имеют ошибку” в Qt Creator- > Tools- > Options- > Devices- > Android.

QT Android Installation Issue

Из-за вышеизложенного я не могу создать приложение для Android.

Недавно я обновил свой Android-sdk, я могу создать и запустить приложение Sample из Android Studio, указав, что инсталляция SDK работает правильно. Я использую инструменты Android SDK 26.1.1. Пожалуйста, проверьте снизу снимки экрана.

Android Studio SDK manager

Установлены инструменты сборки Android SDK.
введите описание изображения здесь

Установлены платформы Android SDk
введите описание изображения здесь

Уже прошли разные ссылки на Qaru и QT forum. Все предлагают понизить инструменты Android SDK (из-за известной ошибки QT), но ни одно из решений для меня не работает. Я знаю, что есть несколько известных ошибок, создающих приложение для Android с QT 5.9 и Qt Creator версии 4.0. Я предполагаю, что он разрешен, так же, как и в Windows 10, работает нормально.

QT Creator не будет отображать список доступных SDK для Android Build
Ошибка установки QT Android

Пожалуйста, помогите, если кто-то здесь разрешил такую ​​же проблему.

Лучший ответ:

После долгих усилий я смог решить эту проблему, благодаря Мохаммаду Канану, отвечающему за Весафари, который заставил меня приблизиться к ответу. Фактическая проблема была решена с помощью следующих шагов. Может быть полезно, кто сталкивается с той же проблемой в Ubuntu или может работать на других платформах.

  1. Первый шаг (как подсказывает большинство ответов) изменен с JDK 9 на JDK 8. Я использую версию Java “1.8.0_152”.
  2. Шаг 1 мне не помог (создатель Qt сохранил некоторые настройки), поэтому я удалил полную установку Qt 5.8,5.9,5.10 (с помощью инструмента Qt Maintainace) и следующие 2 ссылки: Удалить Qt Полностью, Удалить Qt Creator.

и сделал установку снова. Может быть, ваша проблема будет решена на этом этапе.

  1. Шаг 2 также не помог в моем случае, QT Creator все еще сохраняет некоторые настройки и должен сбросить настройки Qt Creator. Это можно сделать, удалив данные в этой папке

    ~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

путь может отличаться в разных системах и ОС. Следующие ссылки будут полезны в этом случае.

Creator FAQ

Настройки Qt 1

Переполнение стека Qt Settings 2

Теперь я могу создавать и запускать приложения для Android.

Ответ №1

Я только что нашел этот bugreport, где в комментариях можно найти

Средство “sdkmanager” на родном языке не может обновлять пакеты на окнах, и это не удается с JDK 9, и эти проблемы также каскадируются в Qt Creator.

Я просто попытался установить JDK 8 и изменить путь, а после повторного открытия меню настроек он сработает!

Ответ №2

Я использую окно ответа, чтобы показать вам, как это работает для меня, последний комментарий: я не устанавливаю NDK 16.. попробуйте удалить его из Android-менеджера; в то время как (для Qt) устанавливают отдельно NDK 10e (это уже была рекомендация Qt).
введите описание изображения здесь

И сторона конфигурации Qt:
введите описание изображения здесь

введите описание изображения здесь

Ответ №3

Спасибо, у меня была такая же проблема, используя Debian Buster (sid) с QtCreator 4.6.2 с Qt5.10.1

Зайдите в ~/.config и сотрите все настройки qtcreator, затем начните снова, указав jdk.8, затем пути к Android SDK и затем NDK.

Это тогда работает, и тупая платформа SDK не установлена, ошибка не происходит. 🙂

Из интереса я попытался стереть все ~/.config/qtcreator * и затем указать jdk10. Не работает как раньше.

Если вы затем переключитесь на jdk8, он все равно не будет работать. Вы должны закрыть QtCreator, стереть все конфиги, открыть заново и снова выбрать его, на котором он будет работать.

Ответ №4

вам не нужно стирать конфиги для qt. просто установите последнюю версию jdk 8 отсюда → http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

затем выберите расположение jdk в настройках и затем внизу выберите вкладку sdk manager. Нажмите кнопку “Установить обновление”, и она должна отобразить окно со списком лицензий, с которыми необходимо согласиться.

Проблема заключается в jdk 9 и выше. По какой-то странной причине он не показывает лицензионные соглашения и не продолжается после этого. Исправление залипает с jdk8

Ответ №5

Платформа SDK проверки, кажется, использует командную строку sdkmanager для просмотра списка доступных установленных пакетов. Это $ANDROID_SDK_ROOT/tools/bin/sdkmanager. В моей системе Linux это было в $HOME/Android/Sdk/tools/bin/sdkmanager.

Запустите командную строку напрямую, и если вы видите ошибки (обычно ошибки Java), вам нужно сначала их исправить. Как и у людей, типичная проблема:

  • Java 8 в порядке, но JDK 9 и JDK 10 не работают с sdkmanager

Даже если вы исправили это для JDK 9/10, у вас могут возникнуть проблемы с компиляцией, поэтому лучше всего перейти на Java 8. sdkmanager все оставшиеся проблемы с командной строкой sdkmanager, а затем, как только это будет сделано, вы обнаружите, что Qt Creator снова счастлив.

Ответ №6

Хорошо, после многих многочасовых испытаний я наконец узнаю, как мы можем это исправить.

  • Загрузите и используйте Android NDK r10e отдельно (не устанавливайте его через SDK Manager)
  • Скачайте и используйте Android SDK без Android Studio (загрузите инструменты Android с официального сайта) Qt Preferences установит все необходимые пакеты (инструменты сборки, инструменты платформы, инструменты SDK, платформа Android-28)
  • Установите и используйте Java JDK 8 (не новее)

Обратите внимание, что установка пакетов SDK через Android Studio не будет обнаруживаться Qt

Ответ №7

Linux:

Предлагаемые решения не работают для меня.

У меня уже была Java 8 и с установленным Qt 5.12 последний SDK и NDK должны работать (должны работать с Qt 5.9).

После нескольких часов возни, переустановки Qt и Java, удаления конфигов, загрузки старых NDK и всего остального, он все равно не работал.

Моя ошибка заключалась в том, что я распаковал SDK и NDK от имени пользователя root в папку, доступную только для чтения. После chown папки для моего обычного пользователя, Creator все нашел и работал как положено.

Так что также проверьте, владеет ли пользователь, использующий Qt Creator, папка, содержащая SDK и NDK. Это быстрая проверка, которая может помешать вам удалить ваши конфиги. 🙂

Hi all,

I’m trying to develop a Qt program to run on my Nvidia Shield tablet. Therefore I’ve installed android-sdk-25.2.5, android-ndk and jre8-openjdk 8.u242-1 and their dependencies and optional dependencies, as instructed by this manual:
https://wiki.archlinux.org/index.php/qt#Android

Next I’ve started QtCreator, and clicked on Tools->options->Device->Android. There I saw this:

Java Settings are OK
Android Settings are OK
OpenSSL Settings are OK

Next I click on the tab «SDK Manager» at the bottom, and slick «Update Installed», and answer Yes to the question about licenses, and OK to the message «Android SDK operations finished». Now the Android settings are no longer OK:

JDK Location: /usr/lib/jvm/default
Java Settings are OK

Android SDK location: /home/cedric/Android/Sdk

Android Settings have errors:
[OK] Android SDK path exists.
[OK] Android SDK path writable.
[X] SDK tools installed
[X] Platform tools installed
[X] Build tools installed
[OK] SDK manager runs (requires exactly Java 1.8)
[X] Platfor SDK installed
[X] All essential packages installed for all installed Qt versions
[X] Default Android NDK path exists.
[X] Default Android NDK directory structure is correct.
[X] Default Android NDK installed into a path without spaces.

OpenSSL .pri location: /home/cedric/Android/Sdk/android_openssl
 OpenSSL Settingsare OK

OpenSSL Settings are OK

My system information:

{noformat}
Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0) on "xcb" 
OS: Arch Linux [linux version 5.6.11-arch1-1]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1

Environment:

Features: QT_NO_EXCEPTIONS

Library info:
  PrefixPath: /usr
  DocumentationPath: /usr/share/doc/qt
  HeadersPath: /usr/include/qt
  LibrariesPath: /usr/lib
  LibraryExecutablesPath: /usr/lib/qt/libexec
  BinariesPath: /usr/bin
  PluginsPath: /usr/lib/qt/plugins
  ImportsPath: /usr/lib/qt/imports
  Qml2ImportsPath: /usr/lib/qt/qml
  ArchDataPath: /usr/lib/qt
  DataPath: /usr/share/qt
  TranslationsPath: /usr/share/qt/translations
  ExamplesPath: /usr/share/doc/qt/examples
  TestsPath: /usr/tests
  SettingsPath: /etc/xdg

Standard paths [*...* denote writable entry]:
  DesktopLocation: "Desktop" */home/cedric/Desktop*
  DocumentsLocation: "Documents" */home/cedric/Documents*
  FontsLocation: "Fonts" */home/cedric/.local/share/fonts* /home/cedric/.fonts /usr/local/share/fonts /usr/share/fonts /usr/share/gdm/fonts /var/lib/menu-xdg/fonts
  ApplicationsLocation: "Applications" */home/cedric/.local/share/applications* /usr/local/share/applications /usr/share/applications /usr/share/gdm/applications /var/lib/menu-xdg/applications
  MusicLocation: "Music" */home/cedric/Music*
  MoviesLocation: "Movies" */home/cedric/Videos*
  PicturesLocation: "Pictures" */home/cedric/Pictures*
  TempLocation: "Temporary Directory" */tmp*
  HomeLocation: "Home" */home/cedric*
  AppLocalDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
  CacheLocation: "Cache" */home/cedric/.cache/QtProject/qtdiag*
  GenericDataLocation: "Shared Data" */home/cedric/.local/share* /usr/local/share /usr/share /usr/share/gdm /var/lib/menu-xdg
  RuntimeLocation: "Runtime" */run/user/1000*
  ConfigLocation: "Configuration" */home/cedric/.config* /etc/xdg
  DownloadLocation: "Download" */home/cedric/Downloads*
  GenericCacheLocation: "Shared Cache" */home/cedric/.cache*
  GenericConfigLocation: "Shared Configuration" */home/cedric/.config* /etc/xdg
  AppDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
  AppConfigLocation: "Application Configuration" */home/cedric/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag

File selectors (increasing order of precedence):
  en_US unix linux arch

Network:
  Using "OpenSSL 1.1.1g  21 Apr 2020", version: 0x1010107f

Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition

Style hints:
  mouseDoubleClickInterval: 400
  mousePressAndHoldInterval: 500
  startDragDistance: 8
  startDragTime: 500
  startDragVelocity: 0
  keyboardInputInterval: 400
  keyboardAutoRepeatRate: 30
  cursorFlashTime: 1200
  showIsFullScreen: 0
  showIsMaximized: 0
  passwordMaskDelay: 0
  passwordMaskCharacter: U+2022
  fontSmoothingGamma: 1.7
  useRtlExtensions: 0
  setFocusOnTouchRelease: 0
  tabFocusBehavior: Qt::TabFocusAllControls 
  singleClickActivation: 0

Additional style hints (QPlatformIntegration):
  ReplayMousePressOutsidePopup: 0

Theme:
  Platforms requested : gtk3,gnome,generic
            available : gtk3,snap,flatpak,xdgdesktopportal
  Styles requested    : fusion,windows
         available    : Windows,Fusion
  Icon theme          : nuoveXT2,  from /home/cedric/.local/share/icons,/usr/share/icons
  System font         : "Sans" 10
  Native file dialog
  Native color dialog
  Native font dialog

Fonts:
  General font : "Sans" 10
  Fixed font   : "monospace" 10
  Title font   : "Bitstream Vera Sans" 12
  Smallest font: "Bitstream Vera Sans" 12

Palette:
  QPalette::WindowText: #ff000000
  QPalette::Button: #ffefefef
  QPalette::Light: #ffffffff
  QPalette::Midlight: #ffcbcbcb
  QPalette::Dark: #ff9f9f9f
  QPalette::Mid: #ffb8b8b8
  QPalette::Text: #ff000000
  QPalette::BrightText: #ffffffff
  QPalette::ButtonText: #ff000000
  QPalette::Base: #ffffffff
  QPalette::Window: #ffefefef
  QPalette::Shadow: #ff767676
  QPalette::Highlight: #ff308cc6
  QPalette::HighlightedText: #ffffffff
  QPalette::Link: #ff0000ff
  QPalette::LinkVisited: #ffff00ff
  QPalette::AlternateBase: #fff7f7f7
  QPalette::NoRole: #ff000000
  QPalette::ToolTipBase: #ffffffdc
  QPalette::ToolTipText: #ff000000
  QPalette::PlaceholderText: #80000000

Screens: 2, High DPI scaling: inactive
# 0 "DVI-0" Depth: 24 Primary: yes
  Manufacturer: 
  Model: 
  Serial number: 
  Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0
  Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
  2 virtual siblings
  Physical size: 510x290 mm  Refresh: 60 Hz Power state: 0
  Physical DPI: 95.6235,94.5931 Logical DPI: 96,96.2526 Subpixel_None
  DevicePixelRatio: 1 Pixel density: 1
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

# 1 "DVI-1" Depth: 24 Primary: no
  Manufacturer: 
  Model: 
  Serial number: 
  Geometry: 1920x1080+0+0 Available: 1920x1080+0+0
  Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
  2 virtual siblings
  Physical size: 885x498 mm  Refresh: 60 Hz Power state: 0
  Physical DPI: 55.1051,55.0843 Logical DPI: 96,96.2526 Subpixel_None
  DevicePixelRatio: 1 Pixel density: 1
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

LibGL Vendor: X.Org
Renderer: AMD RV770 (DRM 2.50.0 / 5.6.11-arch1-1, LLVM 10.0.0)
Version: 3.0 Mesa 20.0.6
Shading language: 1.30
Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8
Profile: None (QOpenGLFunctions_3_0)


Unable to create a Vulkan instance, error code is-9


Failed to create Vulkan instance: -9
Failed to create platform Vulkan instance

Plugin information:

+ Android                           4.12.0
+ AutoTest                          4.12.0
  AutotoolsProjectManager           4.12.0
  BareMetal                         4.12.0
+ Bazaar                            4.12.0
  Beautifier                        4.12.0
+ BinEditor                         4.12.0
+ Bookmarks                         4.12.0
  Boot2Qt                           4.12.0
+ CMakeProjectManager               4.12.0
+ CVS                               4.12.0
+ ClangCodeModel                    4.12.0
  ClangFormat                       4.12.0
  ClangPchManager                   4.12.0
  ClangRefactoring                  4.12.0
+ ClangTools                        4.12.0
+ ClassView                         4.12.0
  ClearCase                         4.12.0
+ CodePaster                        4.12.0
  CompilationDatabaseProjectManager 4.12.0
+ Core                              4.12.0
+ CppEditor                         4.12.0
+ CppTools                          4.12.0
  Cppcheck                          4.12.0
+ CtfVisualizer                     4.12.0
+ Debugger                          4.12.0
+ Designer                          4.12.0
+ DiffEditor                        4.12.0
  EmacsKeys                         4.12.0
+ FakeVim                           4.12.0
+ GLSLEditor                        4.12.0
+ GenericProjectManager             4.12.0
+ Git                               4.12.0
  HelloWorld                        4.12.0
+ Help                              4.12.0
+ ImageViewer                       4.12.0
  Ios                               4.12.0
+ LanguageClient                    4.12.0
+ Macros                            4.12.0
+ Marketplace                       4.12.0
  McuSupport                        4.12.0
+ Mercurial                         4.12.0
+ ModelEditor                       4.12.0
  Nim                               4.12.0
+ PerfProfiler                      4.12.0
  Perforce                          4.12.0
+ ProjectExplorer                   4.12.0
+ Python                            4.12.0
+ QbsProjectManager                 4.12.0
+ QmakeProjectManager               4.12.0
+ QmlDesigner                       4.12.0
+ QmlJSEditor                       4.12.0
+ QmlJSTools                        4.12.0
+ QmlPreview                        4.12.0
+ QmlProfiler                       4.12.0
+ QmlProjectManager                 4.12.0
+ Qnx                               4.12.0
+ QtSupport                         4.12.0
+ RemoteLinux                       4.12.0
+ ResourceEditor                    4.12.0
+ ScxmlEditor                       4.12.0
  SilverSearcher                    4.12.0
  StudioWelcome                     4.12.0
+ Subversion                        4.12.0
+ TaskList                          4.12.0
+ TextEditor                        4.12.0
  Todo                              4.12.0
  UpdateInfo                        4.12.0
+ Valgrind                          4.12.0
+ VcsBase                           4.12.0
  WebAssembly                       4.12.0
+ Welcome                           4.12.0
  WinRt                             4.12.0

Qt Creator 4.12.0
Based on Qt 5.14.2 (GCC 9.3.0, 64 bit)

{noformat}

What is going wrong here?

Я занимаюсь разработкой приложения для платформы Qt Cross для Android, недавно я обновил создатель Qt и установил новую версию Qt. я использую 'Qt Creator version 4.5.0', Я обновил до 'QT version 5.10', Эта настройка сделана в Ubuntu 16.04.

По ссылке Начало работы с установкой QT.

Я всегда получаю сообщение об ошибке «В настройках Android есть ошибка» в Qt Creator-> Инструменты-> Параметры-> Устройства-> Android.

Вопрос установки Android QT

Из-за вышеуказанной проблемы я не могу создать приложение для Android.

Я недавно обновил свой Android SDK, я могу собрать и запустить пример приложения из Android Studio, указывая, что установка SDK работает правильно. Я использую инструменты Android SDK 26.1.1. Пожалуйста, проверьте ниже снимки экрана.

Android Studio SDK менеджер

Установленные инструменты сборки Android SDK.
введите описание изображения здесь

Платформы Android SDk установлены
введите описание изображения здесь

Все уже просматривают разные ссылки на Stack Overflow и форуме QT. Все предлагают понизить версию инструментов Android SDK (из-за известной ошибки QT), но ни одно из решений не работает для меня. Я знаю, что существует мало известных ошибок при создании приложений Android с QT 5.9 и Qt Creator версии 4.0. Я думаю, это решено, так как такая же настройка работает нормально на Windows 10.

QT Creator не будет перечислять доступные SDK Android Build
Ошибка установки Android QT

Пожалуйста, помогите, если кто-то здесь решил ту же проблему.

27

Решение

Я только что нашел это сообщение об ошибке, где в комментариях можно найти

Собственный инструмент ‘sdkmanager’ не может обновлять пакеты на окнах, и он терпит неудачу с JDK 9, и эти проблемы также касаются Qt Creator.

Я только что попытался установить JDK 8 и изменить путь, и после повторного открытия меню настроек все заработало!

15

Другие решения

Я использую поле ответа, чтобы показать вам, как это работает для меня, последний комментарий: я не устанавливаю NDK 16 .. попробуйте удалить его из диспетчера Android; while (для Qt) установить отдельно NDK 10e (это уже была рекомендация Qt).
введите описание изображения здесь

И сторона конфигурации Qt:
введите описание изображения здесь

введите описание изображения здесь

8

После многих усилий я смог решить эту проблему, благодаря Мохаммаду Канану, ответу Весафари, который заставил меня приблизиться к ответу. Фактическая проблема была решена с помощью следующих шагов. Может быть полезно, кто сталкивается с той же проблемой в Ubuntu или может работать на других платформах.

  1. Первый шаг (как подсказывает большинство ответов) изменен с JDK 9 на JDK 8. Я использую версию Java «1.8.0_152».
  2. Шаг 1 не помог мне (создатель Qt сохранил некоторые настройки), поэтому я удалил полную установку Qt 5.8,5.9,5.10 (используя Инструмент Qt Maintainace) и следующие 2 ссылки
    Удалить Qt полностью, Удалить Qt Creator.

и сделал установку снова. Может быть, ваша проблема будет решена на этом этапе.

  1. Шаг 2 также не помог в моем случае, QT Creator все еще сохраняет некоторые настройки и должен сбросить настройки Qt Creator. Это можно сделать, удалив данные в этой папке

    ~ / .config / QtProject ~ / .config / Qt file ~ / .config / QtProject.conf

путь может отличаться в разных системах и ОС. Следующие ссылки будут полезны в этом случае.

Creator FAQ

Настройки переполнения стека Qt 1

Переполнение стека Qt Settings 2

Теперь я могу создавать и запускать приложения для Android.

5

Спасибо
У меня была такая же проблема, используя Debian Buster (sid) с QtCreator 4.6.2 с Qt5.10.1

Зайдите в ~ / .config и сотрите все настройки qtcreator, затем начните снова, указав jdk.8
затем пути к Android SDK и затем NDK.

Потом работает и тупой SDK платформа не установлена ​​ошибка не происходит. 🙂

Из интереса я попытался стереть все ~ / .config / qtcreator * и затем указать jdk10. Не работает как раньше.

Если вы затем переключитесь на jdk8, он все равно не будет работать.
Вы должны закрыть QtCreator, стереть все конфиги, открыть заново и снова выбрать его, на котором он будет работать.

1

вам не нужно стирать конфиги для qt. просто установите последнюю версию JDK 8 отсюда -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

затем выберите расположение jdk в настройках и затем внизу выберите вкладку sdk manager. Нажмите кнопку «Установить обновление», и она должна отобразить окно со списком лицензий, с которыми необходимо согласиться.

Проблема заключается в jdk 9 и выше. По какой-то странной причине он не показывает лицензионные соглашения и не продолжается после этого. Исправление залипает с jdk8

0

Проверка SDK платформы, кажется, использует sdkmanager командная строка для просмотра списка доступных установленных пакетов. Это $ANDROID_SDK_ROOT/tools/bin/sdkmanager, В моей системе Linux это было в $HOME/Android/Sdk/tools/bin/sdkmanager,

Запустите командную строку напрямую, и если вы видите ошибки (обычно ошибки Java), вам нужно сначала их исправить. Как и у людей, типичная проблема:

  • Java 8 в порядке, но JDK 9 и JDK 10 не работают с sdkmanager

Даже если вы исправили это для JDK 9/10, у вас могут возникнуть проблемы с компиляцией, поэтому вам лучше всего понизить рейтинг до Java 8, Работа через любые оставшиеся проблемы с sdkmanager командная строка, тогда, как только это будет сделано, вы должны найти Qt Creator снова счастливым.

0

Хорошо, после многих часов испытаний я наконец узнал, как мы можем это исправить.

  • Загрузите и используйте Android NDK r10e отдельно (не устанавливайте его через SDK Manager)
  • Загрузите и используйте Android SDK без Android Studio (скачать инструменты Android с официального сайта) Qt Preferences установит все необходимые пакеты (инструменты сборки, инструменты платформы, инструменты SDK, платформа Android-28)
  • Установите и используйте Java JDK 8 (не новее)

пожалуйста, обратите внимание что установка пакетов SDK через Android Studio не будет обнаружена Qt

0

Hi all,

I’m trying to develop a Qt program to run on my Nvidia Shield tablet. Therefore I’ve installed android-sdk-25.2.5, android-ndk and jre8-openjdk 8.u242-1 and their dependencies and optional dependencies, as instructed by this manual:
https://wiki.archlinux.org/index.php/qt#Android

Next I’ve started QtCreator, and clicked on Tools->options->Device->Android. There I saw this:

Java Settings are OK
Android Settings are OK
OpenSSL Settings are OK

Next I click on the tab «SDK Manager» at the bottom, and slick «Update Installed», and answer Yes to the question about licenses, and OK to the message «Android SDK operations finished». Now the Android settings are no longer OK:

JDK Location: /usr/lib/jvm/default
Java Settings are OK

Android SDK location: /home/cedric/Android/Sdk

Android Settings have errors:
[OK] Android SDK path exists.
[OK] Android SDK path writable.
[X] SDK tools installed
[X] Platform tools installed
[X] Build tools installed
[OK] SDK manager runs (requires exactly Java 1.8)
[X] Platfor SDK installed
[X] All essential packages installed for all installed Qt versions
[X] Default Android NDK path exists.
[X] Default Android NDK directory structure is correct.
[X] Default Android NDK installed into a path without spaces.

OpenSSL .pri location: /home/cedric/Android/Sdk/android_openssl
 OpenSSL Settingsare OK

OpenSSL Settings are OK

My system information:

{noformat}
Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0) on "xcb" 
OS: Arch Linux [linux version 5.6.11-arch1-1]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1
Environment:
Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /usr
DocumentationPath: /usr/share/doc/qt
HeadersPath: /usr/include/qt
LibrariesPath: /usr/lib
LibraryExecutablesPath: /usr/lib/qt/libexec
BinariesPath: /usr/bin
PluginsPath: /usr/lib/qt/plugins
ImportsPath: /usr/lib/qt/imports
Qml2ImportsPath: /usr/lib/qt/qml
ArchDataPath: /usr/lib/qt
DataPath: /usr/share/qt
TranslationsPath: /usr/share/qt/translations
ExamplesPath: /usr/share/doc/qt/examples
TestsPath: /usr/tests
SettingsPath: /etc/xdg
Standard paths [*...* denote writable entry]:
DesktopLocation: "Desktop" */home/cedric/Desktop*
DocumentsLocation: "Documents" */home/cedric/Documents*
FontsLocation: "Fonts" */home/cedric/.local/share/fonts* /home/cedric/.fonts /usr/local/share/fonts /usr/share/fonts /usr/share/gdm/fonts /var/lib/menu-xdg/fonts
ApplicationsLocation: "Applications" */home/cedric/.local/share/applications* /usr/local/share/applications /usr/share/applications /usr/share/gdm/applications /var/lib/menu-xdg/applications
MusicLocation: "Music" */home/cedric/Music*
MoviesLocation: "Movies" */home/cedric/Videos*
PicturesLocation: "Pictures" */home/cedric/Pictures*
TempLocation: "Temporary Directory" */tmp*
HomeLocation: "Home" */home/cedric*
AppLocalDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
CacheLocation: "Cache" */home/cedric/.cache/QtProject/qtdiag*
GenericDataLocation: "Shared Data" */home/cedric/.local/share* /usr/local/share /usr/share /usr/share/gdm /var/lib/menu-xdg
RuntimeLocation: "Runtime" */run/user/1000*
ConfigLocation: "Configuration" */home/cedric/.config* /etc/xdg
DownloadLocation: "Download" */home/cedric/Downloads*
GenericCacheLocation: "Shared Cache" */home/cedric/.cache*
GenericConfigLocation: "Shared Configuration" */home/cedric/.config* /etc/xdg
AppDataLocation: "Application Data" */home/cedric/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag
AppConfigLocation: "Application Configuration" */home/cedric/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag
File selectors (increasing order of precedence):
en_US unix linux arch
Network:
Using "OpenSSL 1.1.1g  21 Apr 2020", version: 0x1010107f
Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition
Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 500
startDragDistance: 8
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1200
showIsFullScreen: 0
showIsMaximized: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+2022
fontSmoothingGamma: 1.7
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusAllControls 
singleClickActivation: 0
Additional style hints (QPlatformIntegration):
ReplayMousePressOutsidePopup: 0
Theme:
Platforms requested : gtk3,gnome,generic
available : gtk3,snap,flatpak,xdgdesktopportal
Styles requested    : fusion,windows
available    : Windows,Fusion
Icon theme          : nuoveXT2,  from /home/cedric/.local/share/icons,/usr/share/icons
System font         : "Sans" 10
Native file dialog
Native color dialog
Native font dialog
Fonts:
General font : "Sans" 10
Fixed font   : "monospace" 10
Title font   : "Bitstream Vera Sans" 12
Smallest font: "Bitstream Vera Sans" 12
Palette:
QPalette::WindowText: #ff000000
QPalette::Button: #ffefefef
QPalette::Light: #ffffffff
QPalette::Midlight: #ffcbcbcb
QPalette::Dark: #ff9f9f9f
QPalette::Mid: #ffb8b8b8
QPalette::Text: #ff000000
QPalette::BrightText: #ffffffff
QPalette::ButtonText: #ff000000
QPalette::Base: #ffffffff
QPalette::Window: #ffefefef
QPalette::Shadow: #ff767676
QPalette::Highlight: #ff308cc6
QPalette::HighlightedText: #ffffffff
QPalette::Link: #ff0000ff
QPalette::LinkVisited: #ffff00ff
QPalette::AlternateBase: #fff7f7f7
QPalette::NoRole: #ff000000
QPalette::ToolTipBase: #ffffffdc
QPalette::ToolTipText: #ff000000
QPalette::PlaceholderText: #80000000
Screens: 2, High DPI scaling: inactive
# 0 "DVI-0" Depth: 24 Primary: yes
Manufacturer: 
Model: 
Serial number: 
Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 510x290 mm  Refresh: 60 Hz Power state: 0
Physical DPI: 95.6235,94.5931 Logical DPI: 96,96.2526 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
# 1 "DVI-1" Depth: 24 Primary: no
Manufacturer: 
Model: 
Serial number: 
Geometry: 1920x1080+0+0 Available: 1920x1080+0+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 885x498 mm  Refresh: 60 Hz Power state: 0
Physical DPI: 55.1051,55.0843 Logical DPI: 96,96.2526 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: X.Org
Renderer: AMD RV770 (DRM 2.50.0 / 5.6.11-arch1-1, LLVM 10.0.0)
Version: 3.0 Mesa 20.0.6
Shading language: 1.30
Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8
Profile: None (QOpenGLFunctions_3_0)
Unable to create a Vulkan instance, error code is-9
Failed to create Vulkan instance: -9
Failed to create platform Vulkan instance
Plugin information:
+ Android                           4.12.0
+ AutoTest                          4.12.0
AutotoolsProjectManager           4.12.0
BareMetal                         4.12.0
+ Bazaar                            4.12.0
Beautifier                        4.12.0
+ BinEditor                         4.12.0
+ Bookmarks                         4.12.0
Boot2Qt                           4.12.0
+ CMakeProjectManager               4.12.0
+ CVS                               4.12.0
+ ClangCodeModel                    4.12.0
ClangFormat                       4.12.0
ClangPchManager                   4.12.0
ClangRefactoring                  4.12.0
+ ClangTools                        4.12.0
+ ClassView                         4.12.0
ClearCase                         4.12.0
+ CodePaster                        4.12.0
CompilationDatabaseProjectManager 4.12.0
+ Core                              4.12.0
+ CppEditor                         4.12.0
+ CppTools                          4.12.0
Cppcheck                          4.12.0
+ CtfVisualizer                     4.12.0
+ Debugger                          4.12.0
+ Designer                          4.12.0
+ DiffEditor                        4.12.0
EmacsKeys                         4.12.0
+ FakeVim                           4.12.0
+ GLSLEditor                        4.12.0
+ GenericProjectManager             4.12.0
+ Git                               4.12.0
HelloWorld                        4.12.0
+ Help                              4.12.0
+ ImageViewer                       4.12.0
Ios                               4.12.0
+ LanguageClient                    4.12.0
+ Macros                            4.12.0
+ Marketplace                       4.12.0
McuSupport                        4.12.0
+ Mercurial                         4.12.0
+ ModelEditor                       4.12.0
Nim                               4.12.0
+ PerfProfiler                      4.12.0
Perforce                          4.12.0
+ ProjectExplorer                   4.12.0
+ Python                            4.12.0
+ QbsProjectManager                 4.12.0
+ QmakeProjectManager               4.12.0
+ QmlDesigner                       4.12.0
+ QmlJSEditor                       4.12.0
+ QmlJSTools                        4.12.0
+ QmlPreview                        4.12.0
+ QmlProfiler                       4.12.0
+ QmlProjectManager                 4.12.0
+ Qnx                               4.12.0
+ QtSupport                         4.12.0
+ RemoteLinux                       4.12.0
+ ResourceEditor                    4.12.0
+ ScxmlEditor                       4.12.0
SilverSearcher                    4.12.0
StudioWelcome                     4.12.0
+ Subversion                        4.12.0
+ TaskList                          4.12.0
+ TextEditor                        4.12.0
Todo                              4.12.0
UpdateInfo                        4.12.0
+ Valgrind                          4.12.0
+ VcsBase                           4.12.0
WebAssembly                       4.12.0
+ Welcome                           4.12.0
WinRt                             4.12.0
Qt Creator 4.12.0
Based on Qt 5.14.2 (GCC 9.3.0, 64 bit)
{noformat}

What is going wrong here?

Вопрос:

Я разрабатываю приложение для платформы Qt Cross для Android, недавно я обновил Qt-создатель и установил новую версию Qt. Я использую 'Qt Creator version 4.5.0'. Я обновился до 'QT version 5.10'. Эта настройка выполняется на Ubuntu 16.04.

Следующая ссылка Начало работы с установкой QT.

Я всегда получаю сообщение об ошибке “Настройки Android имеют ошибку” в Qt Creator- > Tools- > Options- > Devices- > Android.

QT Android Installation Issue

Из-за вышеизложенного я не могу создать приложение для Android.

Недавно я обновил свой Android-sdk, я могу создать и запустить приложение Sample из Android Studio, указав, что инсталляция SDK работает правильно. Я использую инструменты Android SDK 26.1.1. Пожалуйста, проверьте снизу снимки экрана.

Android Studio SDK manager

Установлены инструменты сборки Android SDK.
введите описание изображения здесь

Установлены платформы Android SDk
введите описание изображения здесь

Уже прошли разные ссылки на Qaru и QT forum. Все предлагают понизить инструменты Android SDK (из-за известной ошибки QT), но ни одно из решений для меня не работает. Я знаю, что есть несколько известных ошибок, создающих приложение для Android с QT 5.9 и Qt Creator версии 4.0. Я предполагаю, что он разрешен, так же, как и в Windows 10, работает нормально.

QT Creator не будет отображать список доступных SDK для Android Build
Ошибка установки QT Android

Пожалуйста, помогите, если кто-то здесь разрешил такую ​​же проблему.

Лучший ответ:

После долгих усилий я смог решить эту проблему, благодаря Мохаммаду Канану, отвечающему за Весафари, который заставил меня приблизиться к ответу. Фактическая проблема была решена с помощью следующих шагов. Может быть полезно, кто сталкивается с той же проблемой в Ubuntu или может работать на других платформах.

  1. Первый шаг (как подсказывает большинство ответов) изменен с JDK 9 на JDK 8. Я использую версию Java “1.8.0_152”.
  2. Шаг 1 мне не помог (создатель Qt сохранил некоторые настройки), поэтому я удалил полную установку Qt 5.8,5.9,5.10 (с помощью инструмента Qt Maintainace) и следующие 2 ссылки: Удалить Qt Полностью, Удалить Qt Creator.

и сделал установку снова. Может быть, ваша проблема будет решена на этом этапе.

  1. Шаг 2 также не помог в моем случае, QT Creator все еще сохраняет некоторые настройки и должен сбросить настройки Qt Creator. Это можно сделать, удалив данные в этой папке

    ~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

путь может отличаться в разных системах и ОС. Следующие ссылки будут полезны в этом случае.

Creator FAQ

Настройки Qt 1

Переполнение стека Qt Settings 2

Теперь я могу создавать и запускать приложения для Android.

Ответ №1

Я только что нашел этот bugreport, где в комментариях можно найти

Средство “sdkmanager” на родном языке не может обновлять пакеты на окнах, и это не удается с JDK 9, и эти проблемы также каскадируются в Qt Creator.

Я просто попытался установить JDK 8 и изменить путь, а после повторного открытия меню настроек он сработает!

Ответ №2

Я использую окно ответа, чтобы показать вам, как это работает для меня, последний комментарий: я не устанавливаю NDK 16.. попробуйте удалить его из Android-менеджера; в то время как (для Qt) устанавливают отдельно NDK 10e (это уже была рекомендация Qt).
введите описание изображения здесь

И сторона конфигурации Qt:
введите описание изображения здесь

введите описание изображения здесь

Ответ №3

Спасибо, у меня была такая же проблема, используя Debian Buster (sid) с QtCreator 4.6.2 с Qt5.10.1

Зайдите в ~/.config и сотрите все настройки qtcreator, затем начните снова, указав jdk.8, затем пути к Android SDK и затем NDK.

Это тогда работает, и тупая платформа SDK не установлена, ошибка не происходит. 🙂

Из интереса я попытался стереть все ~/.config/qtcreator * и затем указать jdk10. Не работает как раньше.

Если вы затем переключитесь на jdk8, он все равно не будет работать. Вы должны закрыть QtCreator, стереть все конфиги, открыть заново и снова выбрать его, на котором он будет работать.

Ответ №4

вам не нужно стирать конфиги для qt. просто установите последнюю версию jdk 8 отсюда → http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

затем выберите расположение jdk в настройках и затем внизу выберите вкладку sdk manager. Нажмите кнопку “Установить обновление”, и она должна отобразить окно со списком лицензий, с которыми необходимо согласиться.

Проблема заключается в jdk 9 и выше. По какой-то странной причине он не показывает лицензионные соглашения и не продолжается после этого. Исправление залипает с jdk8

Ответ №5

Платформа SDK проверки, кажется, использует командную строку sdkmanager для просмотра списка доступных установленных пакетов. Это $ANDROID_SDK_ROOT/tools/bin/sdkmanager. В моей системе Linux это было в $HOME/Android/Sdk/tools/bin/sdkmanager.

Запустите командную строку напрямую, и если вы видите ошибки (обычно ошибки Java), вам нужно сначала их исправить. Как и у людей, типичная проблема:

  • Java 8 в порядке, но JDK 9 и JDK 10 не работают с sdkmanager

Даже если вы исправили это для JDK 9/10, у вас могут возникнуть проблемы с компиляцией, поэтому лучше всего перейти на Java 8. sdkmanager все оставшиеся проблемы с командной строкой sdkmanager, а затем, как только это будет сделано, вы обнаружите, что Qt Creator снова счастлив.

Ответ №6

Хорошо, после многих многочасовых испытаний я наконец узнаю, как мы можем это исправить.

  • Загрузите и используйте Android NDK r10e отдельно (не устанавливайте его через SDK Manager)
  • Скачайте и используйте Android SDK без Android Studio (загрузите инструменты Android с официального сайта) Qt Preferences установит все необходимые пакеты (инструменты сборки, инструменты платформы, инструменты SDK, платформа Android-28)
  • Установите и используйте Java JDK 8 (не новее)

Обратите внимание, что установка пакетов SDK через Android Studio не будет обнаруживаться Qt

Ответ №7

Linux:

Предлагаемые решения не работают для меня.

У меня уже была Java 8 и с установленным Qt 5.12 последний SDK и NDK должны работать (должны работать с Qt 5.9).

После нескольких часов возни, переустановки Qt и Java, удаления конфигов, загрузки старых NDK и всего остального, он все равно не работал.

Моя ошибка заключалась в том, что я распаковал SDK и NDK от имени пользователя root в папку, доступную только для чтения. После chown папки для моего обычного пользователя, Creator все нашел и работал как положено.

Так что также проверьте, владеет ли пользователь, использующий Qt Creator, папка, содержащая SDK и NDK. Это быстрая проверка, которая может помешать вам удалить ваши конфиги. 🙂

10 / 7 / 3

Регистрация: 18.03.2020

Сообщений: 57

1

28.03.2020, 10:35. Показов 3683. Ответов 6


Пытаюсь настроить qt creator для разработки на андройд.
Возникли следующие проблемы:

Путь F:AndroidSdk не похож на корневой каталог Android SDK

При этом SDK установлен именно в эту папку.

И ещё —

Отсутствуют профили Qt для 3 архитектур

В профилях Qt пишет

Отсутствует компилятор для создания кода из этого профиля Qt. Укажите хотя-бы один

Но при этом Android ARMv7 установлен

В интернете ничего не нашёл

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

28.03.2020, 10:35

6

Эксперт .NET

5462 / 4233 / 1210

Регистрация: 12.10.2013

Сообщений: 12,225

Записей в блоге: 2

28.03.2020, 10:51

2

Цитата
Сообщение от Master_Tinka
Посмотреть сообщение

При этом SDK установлен именно в эту папку.

А вот не нужно было его ставить в эту папку. Установите в ту что по умолчанию (C:Users%user_name%AppDataLocalAndroid).

Цитата
Сообщение от Master_Tinka
Посмотреть сообщение

Но при этом Android ARMv7 установлен

Какой NDK используется? Для Qt5.14.1 норм. встает android-ndk-r21, самый последний. У меня именно так настроено, все собирается под Android без проблем.

И важен порядок. Сначала ставите Android Studio, скачиваете и устанавливаете все нужные SDK и образы. Потом скачиваете и распаковываете NDK (его папка не важна). Естественно, скачиваете и устанавливаете пакет Java. А после этого ставите QtCreator. И да, для Qt5.14.1 ОС должна быть 64-х битной (иначе нормально пакет для Android не распакуется). Если Qt уже установлен, удалите его, выполните все шаги и потом установите заново. Перед его установкой очистите папку с настройками (C:Users%user_name%AppDataRoamingQtProject). Просто удалите ее и все.

1

10 / 7 / 3

Регистрация: 18.03.2020

Сообщений: 57

28.03.2020, 12:09

 [ТС]

3

SDK так и не находит, Qt переустановил

0

10 / 7 / 3

Регистрация: 18.03.2020

Сообщений: 57

28.03.2020, 12:19

 [ТС]

4

Вот как это отображается

Миниатюры

Проблемы с настройкой Android
 

Проблемы с настройкой Android
 

0

Эксперт .NET

5462 / 4233 / 1210

Регистрация: 12.10.2013

Сообщений: 12,225

Записей в блоге: 2

28.03.2020, 13:41

5

Лучший ответ Сообщение было отмечено Master_Tinka как решение

Решение

Цитата
Сообщение от Master_Tinka
Посмотреть сообщение

Вот как это отображается

SDK он видит. Не все инструменты установлены. Откройте SDK Manager и в нем установите как на скринах. Потом сбросьте настройки QtCreator (удалением папки с настройками).

Миниатюры

Проблемы с настройкой Android
 

Проблемы с настройкой Android
 

1

10 / 7 / 3

Регистрация: 18.03.2020

Сообщений: 57

28.03.2020, 14:23

 [ТС]

6

Теперь происходит вот это. При добавлении jdk высвечиваются ошибки в Android SDK

Миниатюры

Проблемы с настройкой Android
 

Проблемы с настройкой Android
 

0

Эксперт .NET

5462 / 4233 / 1210

Регистрация: 12.10.2013

Сообщений: 12,225

Записей в блоге: 2

28.03.2020, 14:32

7

Цитата
Сообщение от Master_Tinka
Посмотреть сообщение

При добавлении jdk высвечиваются ошибки в Android SDK

Установите свежий вариант jdk (версии 1.8)/

0

I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0'. I have updated to 'QT version 5.10'. This Set up is done on Ubuntu 16.04.

Followed link Getting Started with QT Installation.

I am always getting Error message «Android Settings have error» in Qt Creator->Tools->Options->Devices->Android.

QT Android Installation Issue

Because of above issue i am not able to build application for Android.

I have recently updated my Android sdk, I am able to build and run Sample application from Android Studio, indicating that SDK instalation is working properly. I am using Android SDK tools 26.1.1. Please check bellow screen shots.

Android Studio SDK manager

Android SDK build tools Installed.
enter image description here

Android SDk platforms installed
enter image description here

Already gone through different links on Stack Overflow and QT forum, All are Suggesting downgrade of Android SDK tools(Due to QT Known bug), but none of the solution is working for me. I know there are few known bugs building Android application with QT 5.9 and Qt Creator version 4.0. I guess It is resolved, as same set up is working fine on Windows 10.

QT Creator wont list any available Android Build SDKs
QT Android Installation error

Please help if anybody here resolved same issue.

cbuchart's user avatar

cbuchart

10.5k7 gold badges53 silver badges87 bronze badges

asked Jan 10, 2018 at 14:10

Swapnil's user avatar

2

I just found this bugreport, where in the comments can be found

The native ‘sdkmanager’ tool can not update packages on windows and it fails with JDK 9 and these issues cascades to Qt Creator also.

I just tried installing JDK 8 and changing the path, and after reopening the settings menu it had worked!

answered Jan 13, 2018 at 1:05

Vesafary's user avatar

VesafaryVesafary

3211 gold badge2 silver badges3 bronze badges

7

After lot of effort I am able to fix this issue, thanks to Mohammad Kanan, Vesafary who’s answer made me get closer to Answer, Actual issue resolved with the following steps. It may be helpful who are facing the same issue In Ubuntu or may work on other platforms as well.

  1. First Step is (as most of the answers suggest) changed from JDK 9 to JDK 8. I am using Java version «1.8.0_152».
  2. Step 1 didn’t help me (Qt creator Persist some Settings), so i removed complete Qt 5.8,5.9,5.10 installation (Using Qt Maintainace tool) and following 2 links
    Uninstall Qt Completely, Uninstall Qt Creator.

and did Instalation again. May be your problem get resolved at this step.

  1. Step 2 also didn’t help in my case, QT Creator still persist few settings and need to reset Qt creator settings. That can be done by deleting data in this folder

    ~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

path may be different in different System and OS. following links will be helpful in this case.

Creator FAQ

Stack Overflow Qt Settings 1

Stack Overflow Qt Settings 2

Now i am able to build and run android application.

answered Feb 25, 2018 at 8:24

Swapnil's user avatar

SwapnilSwapnil

2,3924 gold badges25 silver badges47 bronze badges

2

I am using the answer box to show you how it works for me, one last comment: I don’t install NDK 16 .. try remove it from Android manager; while (For Qt) install seperately NDK 10e (this was a Qt recommendation already).
enter image description here

And Qt configuration side:
enter image description here

enter image description here

answered Jan 19, 2018 at 19:26

Mohammad Kanan's user avatar

Mohammad KananMohammad Kanan

4,33510 gold badges22 silver badges46 bronze badges

0

«Platform SDK installed» requires a working a sdkmanager command.

If you have the Platform SDK installed, try running the sdkmanager command directly.

This is $ANDROID_SDK_ROOT/tools/bin/sdkmanager. On my Linux system this was in $HOME/Android/Sdk/tools/bin/sdkmanager.

The typically issue is

  • You need to install JDK 8 properly (note that JDK 9, JDK 10 and JDK 11 will not work!)

If you have installed a newer JDK you will need to downgrade to JDK 8. Either OpenJDK or Oracle will work, but it needs to be JDK 8.

Work thru any remaining issues with the sdkmanager command line, then, once that’s done, you should find Qt Creator to be happy again.

References:

  • https://developer.android.com/studio/write/java8-support
  • https://issuetracker.google.com/issues/67495440

answered Oct 3, 2018 at 20:33

Stephen Quan's user avatar

Stephen QuanStephen Quan

19.5k4 gold badges80 silver badges73 bronze badges

Thanks
I had the same problem, using Debian Buster (sid) with QtCreator 4.6.2 with Qt5.10.1

Go into ~/.config and wipe all the qtcreator settings, then start again specifying jdk.8
then the paths to the Android SDK and then the NDK.

It then works and the dumb SDK platform not installed error does not occur. :)

Out of interest I tried wiping everything ~/.config/qtcreator* and then specifying jdk10. Does not work as before.

If you then change to jdk8, it still does not work.
You have to close QtCreator, wipe all the configs, reopen and choose it again, whereon it will work.

answered Jul 4, 2018 at 15:20

MickG's user avatar

MickGMickG

212 bronze badges

1

I just had the exact same symptoms as the OP. Just that unlike the OP, I was using Qt Creator 4.8.0, as provided in the Ubuntu 19.10 repositories.

Symptoms

The relevant part from the Qt Creator self-check list is:

✓  SDK tools installed.
X  Platform SDK installed.

An additional symptom was that the «SDK Manager» tab below had this message:

SDK manager is not available with the current version of SDK tools. Use Native SDK Manager.

Cause and Fix

The reason for this issue was a wrong version of SDK tools. That wrong version is recognized («SDK tools installed.») but cannot be utilized by Qt Creator to detect which platform SDK is installed or to install new ones.

In my case, I had simply downloaded the latest version, provided as commandlinetools-linux-*_latest.zip on the Android Studio download page. That version introduced changes that are not backwards compatible with the interface of earlier versions that Qt Creator is expecting. That new package is indeed quite different: it has a different name (commandlinetools vs. sdk-tools), expects to be in a different place etc..

To solve this, download and install «Android SDK Tools 26.1.1» (rev. 4333796) as follows, supplying your own Android SDK directory of course:

cd /opt/android-sdk/
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip

That fixed all the symptoms described above.

answered May 28, 2020 at 20:18

tanius's user avatar

taniustanius

12.2k3 gold badges44 silver badges57 bronze badges

you do not need to wipe the configs for qt. simply install the latest of jdk 8 from here -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

next select the jdk location in the options and then toward the bottom select the sdk manager tab. Click the update installed button and it should show a window with a list of licenses you need to agree to.

The problem lies with jdk 9 and up. For some odd reason it doesn’t show the license agreements and doesn’t continue beyond that point. The fix is sticking with jdk8

answered Sep 11, 2018 at 10:58

CecilMerrell aka bringrainfire's user avatar

OK, after many many hours try-out I finally find out how we can fix it.

  • Download and use Android NDK r10e separately (don’t install it through SDK Manager)
  • Download and use Android SDK without Android Studio (download android tools from official site) Qt Preferences will installs all needed packages (build tools , platform tools, sdk tools, platform android-28)
  • Install and use Java JDK 8 (not newer)

Please note that installing SDK packages through Android Studio will not be detectable by Qt

answered Oct 9, 2018 at 21:27

S.M.Mousavi's user avatar

S.M.MousaviS.M.Mousavi

4,8537 gold badges44 silver badges57 bronze badges

In my case I had red crosses for
SDK tools installed.
and for
Platform SDK installed.

To resolve it I needed to download android sdk tools from https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html

file was tools_r25.2.5-linux.zip

I placed extracted tools folder in sdk folder.
My setup now works only with open-jdk-8
Now I can deploy qml apps on my S10

answered Apr 16, 2020 at 16:35

Marcin Snieg's user avatar

Linux:

The proposed solutions did not work for me.

I already had Java 8 and with Qt 5.12 installed the latest SDK and NDK are supposed to work (should work since Qt 5.9).

After hours of fiddling, reinstalling Qt and Java, removing configs, downloading older NDKs and all, it still did not work.

My mistake was that I unpacked SDK and NDK as root into a read-only location for the user. After chowning the folder to the my normal user, Creator found everything and worked as expected.

So also check, if the user running Qt Creator owns the folder containing SDK and NDK. It’s a quick check that might prevent you from deleting your configs. :)

Edit: In August 2019, I added a patch to Qt Creator, checking for this partiicular case and reporting an error accordingly.
https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=4ca3bd4d0f336f7055080e78849c0607ba99843c

answered Feb 5, 2019 at 15:46

To add on to the accepted answer of needing JDK 8 — if you already have a newer version of Java running, you can easily install a standalone version 8 alongside it. Use the installer from https://adoptopenjdk.net/ and select v8.0. Make sure to update your preferences to point to the Java 8 and things should work.

answered Apr 15, 2020 at 22:57

67hz's user avatar

67hz67hz

3813 silver badges7 bronze badges

In my case, I download the separate SDK download tool, android-sdk_r24.4.1-windows, and Installed the SDK again. the Android SDK Platform-tools is a part of Android SDK Manager.and I resolved the problem.

answered Apr 1, 2021 at 3:27

Beacher Harry's user avatar

I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0'. I have updated to 'QT version 5.10'. This Set up is done on Ubuntu 16.04.

Followed link Getting Started with QT Installation.

I am always getting Error message «Android Settings have error» in Qt Creator->Tools->Options->Devices->Android.

QT Android Installation Issue

Because of above issue i am not able to build application for Android.

I have recently updated my Android sdk, I am able to build and run Sample application from Android Studio, indicating that SDK instalation is working properly. I am using Android SDK tools 26.1.1. Please check bellow screen shots.

Android Studio SDK manager

Android SDK build tools Installed.
enter image description here

Android SDk platforms installed
enter image description here

Already gone through different links on Stack Overflow and QT forum, All are Suggesting downgrade of Android SDK tools(Due to QT Known bug), but none of the solution is working for me. I know there are few known bugs building Android application with QT 5.9 and Qt Creator version 4.0. I guess It is resolved, as same set up is working fine on Windows 10.

QT Creator wont list any available Android Build SDKs
QT Android Installation error

Please help if anybody here resolved same issue.

cbuchart's user avatar

cbuchart

10.5k7 gold badges53 silver badges87 bronze badges

asked Jan 10, 2018 at 14:10

Swapnil's user avatar

2

I just found this bugreport, where in the comments can be found

The native ‘sdkmanager’ tool can not update packages on windows and it fails with JDK 9 and these issues cascades to Qt Creator also.

I just tried installing JDK 8 and changing the path, and after reopening the settings menu it had worked!

answered Jan 13, 2018 at 1:05

Vesafary's user avatar

VesafaryVesafary

3211 gold badge2 silver badges3 bronze badges

7

After lot of effort I am able to fix this issue, thanks to Mohammad Kanan, Vesafary who’s answer made me get closer to Answer, Actual issue resolved with the following steps. It may be helpful who are facing the same issue In Ubuntu or may work on other platforms as well.

  1. First Step is (as most of the answers suggest) changed from JDK 9 to JDK 8. I am using Java version «1.8.0_152».
  2. Step 1 didn’t help me (Qt creator Persist some Settings), so i removed complete Qt 5.8,5.9,5.10 installation (Using Qt Maintainace tool) and following 2 links
    Uninstall Qt Completely, Uninstall Qt Creator.

and did Instalation again. May be your problem get resolved at this step.

  1. Step 2 also didn’t help in my case, QT Creator still persist few settings and need to reset Qt creator settings. That can be done by deleting data in this folder

    ~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

path may be different in different System and OS. following links will be helpful in this case.

Creator FAQ

Stack Overflow Qt Settings 1

Stack Overflow Qt Settings 2

Now i am able to build and run android application.

answered Feb 25, 2018 at 8:24

Swapnil's user avatar

SwapnilSwapnil

2,3924 gold badges25 silver badges47 bronze badges

2

I am using the answer box to show you how it works for me, one last comment: I don’t install NDK 16 .. try remove it from Android manager; while (For Qt) install seperately NDK 10e (this was a Qt recommendation already).
enter image description here

And Qt configuration side:
enter image description here

enter image description here

answered Jan 19, 2018 at 19:26

Mohammad Kanan's user avatar

Mohammad KananMohammad Kanan

4,33510 gold badges22 silver badges46 bronze badges

0

«Platform SDK installed» requires a working a sdkmanager command.

If you have the Platform SDK installed, try running the sdkmanager command directly.

This is $ANDROID_SDK_ROOT/tools/bin/sdkmanager. On my Linux system this was in $HOME/Android/Sdk/tools/bin/sdkmanager.

The typically issue is

  • You need to install JDK 8 properly (note that JDK 9, JDK 10 and JDK 11 will not work!)

If you have installed a newer JDK you will need to downgrade to JDK 8. Either OpenJDK or Oracle will work, but it needs to be JDK 8.

Work thru any remaining issues with the sdkmanager command line, then, once that’s done, you should find Qt Creator to be happy again.

References:

  • https://developer.android.com/studio/write/java8-support
  • https://issuetracker.google.com/issues/67495440

answered Oct 3, 2018 at 20:33

Stephen Quan's user avatar

Stephen QuanStephen Quan

19.5k4 gold badges80 silver badges73 bronze badges

Thanks
I had the same problem, using Debian Buster (sid) with QtCreator 4.6.2 with Qt5.10.1

Go into ~/.config and wipe all the qtcreator settings, then start again specifying jdk.8
then the paths to the Android SDK and then the NDK.

It then works and the dumb SDK platform not installed error does not occur. :)

Out of interest I tried wiping everything ~/.config/qtcreator* and then specifying jdk10. Does not work as before.

If you then change to jdk8, it still does not work.
You have to close QtCreator, wipe all the configs, reopen and choose it again, whereon it will work.

answered Jul 4, 2018 at 15:20

MickG's user avatar

MickGMickG

212 bronze badges

1

I just had the exact same symptoms as the OP. Just that unlike the OP, I was using Qt Creator 4.8.0, as provided in the Ubuntu 19.10 repositories.

Symptoms

The relevant part from the Qt Creator self-check list is:

✓  SDK tools installed.
X  Platform SDK installed.

An additional symptom was that the «SDK Manager» tab below had this message:

SDK manager is not available with the current version of SDK tools. Use Native SDK Manager.

Cause and Fix

The reason for this issue was a wrong version of SDK tools. That wrong version is recognized («SDK tools installed.») but cannot be utilized by Qt Creator to detect which platform SDK is installed or to install new ones.

In my case, I had simply downloaded the latest version, provided as commandlinetools-linux-*_latest.zip on the Android Studio download page. That version introduced changes that are not backwards compatible with the interface of earlier versions that Qt Creator is expecting. That new package is indeed quite different: it has a different name (commandlinetools vs. sdk-tools), expects to be in a different place etc..

To solve this, download and install «Android SDK Tools 26.1.1» (rev. 4333796) as follows, supplying your own Android SDK directory of course:

cd /opt/android-sdk/
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip

That fixed all the symptoms described above.

answered May 28, 2020 at 20:18

tanius's user avatar

taniustanius

12.2k3 gold badges44 silver badges57 bronze badges

you do not need to wipe the configs for qt. simply install the latest of jdk 8 from here -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

next select the jdk location in the options and then toward the bottom select the sdk manager tab. Click the update installed button and it should show a window with a list of licenses you need to agree to.

The problem lies with jdk 9 and up. For some odd reason it doesn’t show the license agreements and doesn’t continue beyond that point. The fix is sticking with jdk8

answered Sep 11, 2018 at 10:58

CecilMerrell aka bringrainfire's user avatar

OK, after many many hours try-out I finally find out how we can fix it.

  • Download and use Android NDK r10e separately (don’t install it through SDK Manager)
  • Download and use Android SDK without Android Studio (download android tools from official site) Qt Preferences will installs all needed packages (build tools , platform tools, sdk tools, platform android-28)
  • Install and use Java JDK 8 (not newer)

Please note that installing SDK packages through Android Studio will not be detectable by Qt

answered Oct 9, 2018 at 21:27

S.M.Mousavi's user avatar

S.M.MousaviS.M.Mousavi

4,8537 gold badges44 silver badges57 bronze badges

In my case I had red crosses for
SDK tools installed.
and for
Platform SDK installed.

To resolve it I needed to download android sdk tools from https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html

file was tools_r25.2.5-linux.zip

I placed extracted tools folder in sdk folder.
My setup now works only with open-jdk-8
Now I can deploy qml apps on my S10

answered Apr 16, 2020 at 16:35

Marcin Snieg's user avatar

Linux:

The proposed solutions did not work for me.

I already had Java 8 and with Qt 5.12 installed the latest SDK and NDK are supposed to work (should work since Qt 5.9).

After hours of fiddling, reinstalling Qt and Java, removing configs, downloading older NDKs and all, it still did not work.

My mistake was that I unpacked SDK and NDK as root into a read-only location for the user. After chowning the folder to the my normal user, Creator found everything and worked as expected.

So also check, if the user running Qt Creator owns the folder containing SDK and NDK. It’s a quick check that might prevent you from deleting your configs. :)

Edit: In August 2019, I added a patch to Qt Creator, checking for this partiicular case and reporting an error accordingly.
https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=4ca3bd4d0f336f7055080e78849c0607ba99843c

answered Feb 5, 2019 at 15:46

To add on to the accepted answer of needing JDK 8 — if you already have a newer version of Java running, you can easily install a standalone version 8 alongside it. Use the installer from https://adoptopenjdk.net/ and select v8.0. Make sure to update your preferences to point to the Java 8 and things should work.

answered Apr 15, 2020 at 22:57

67hz's user avatar

67hz67hz

3813 silver badges7 bronze badges

In my case, I download the separate SDK download tool, android-sdk_r24.4.1-windows, and Installed the SDK again. the Android SDK Platform-tools is a part of Android SDK Manager.and I resolved the problem.

answered Apr 1, 2021 at 3:27

Beacher Harry's user avatar

Понравилась статья? Поделить с друзьями:
  • Настройка шасси инфинити q50 ошибка
  • Наша встреча была ошибкой статус
  • Настройка служб bluetooth ошибка подключения к гарнитуре
  • Наша встреча была ошибкой песня текст
  • Настройка сети код ошибки 107