Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
Qt Creator 6.0.1, Qt Creator 10.0.0
-
None
-
-
cae4dd01a (master)
-
2023wk20FOQtforAndroid, 2023wk22FOQtforAndroid, 2023wk24FOQtforAndroid, 2023wk26FOQtforAndroid, 2023wk28FOQtforAndroid, 2023wk30FOQtforAndroid, 2023wk32FOQtforAndroid, 2023wk34FOQtforAndroid, 2023wk36FOQtforAndroid, 2023wk38FOQtforAndroid, 2023wk40FOQtforAndroid, 2023wk42FOQtforAndroid, 2023wk44FOQtforAndroid, 2023wk46FOQtforAndroid
Description
I have been getting this error in Qt creator -
No target architecture defined in json file. 10:58:11: The process "C:\Qt\6.2.2\mingw_64\bin\androiddeployqt.exe" exited with code 2. Error while building/deploying project cook-ui-modular-qt (kit: Android Qt 6.2.2 Clang x86_64) When executing step "Build Android APK"
And the JSON file it produces is:
{ "_description": "This file is generated by QtCreator to be read by androiddeployqt and should not be modified by hand.", "android-extra-libs": "ConnectedSocket", "android-package-source-directory": "C:/Users/gollaha/Code/cook-ui-modular-qt/App/UserInterface/platform/android", "application-binary": "C:/Users/gollaha/Code/build-cook-ui-modular-qt-Android_Qt_6_2_2_Clang_x86_64-Debug/App/ConnectedSocket/libConnectedSocket.so", "ndk": "C:/Users/gollaha/AppData/Local/Android/Sdk/ndk/21.3.6528147", "ndk-host": "windows-x86_64", "qml-root-path": "C:/Users/gollaha/Code/cook-ui-modular-qt", "qt": "C:/Qt/6.2.2/android_x86_64", "sdk": "C:/Users/gollaha/AppData/Local/Android/Sdk", "stdcpp-path": "C:/Users/gollaha/AppData/Local/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/x86_64-linux-android/libc++_shared.so", "target-architecture": "x86_64", "tool-prefix": "llvm", "toolchain-prefix": "llvm", "useLLVM": true }
I am not sure what the issue is?
*Update*
Probably a conflicting files after running qmake and then running cmake. That's because I had to uninstall everything on Windows, wait for new gradle 7.2 to download and then it works. Tried the same thing on Linux and it doesn't work.
Update 2
This has started working only after doing the following steps:
- Delete the Qt Creator files - https://doc.qt.io/qtcreator/creator-quick-tour.html#location-of-settings-files
- Delete Android folder at $home
- Delete any *.txt.user files
- Redo the entire download of Android SDK, setup Qt Creator and then import the project.
This looks problematic for people who are using both qmake and cmake.
Attachments
Issue Links
- is blocked by
-
QTBUG-112517 Vulkan - needs step through the code with snippets
- Closed
- is duplicated by
-
QTBUG-111334 Missing target architecture when building some of the QtQuick projects
- Closed