To prevent linker errors related to \Qt6.2.2\android\include\QtConcurrent\qtconcurrentrunbase.h
void run() override
{
if (promise.isCanceled()) {
promise.reportFinished();
return;
}
#ifndef QT_NO_EXCEPTIONS
try {
#endif
runFunctor();
#ifndef QT_NO_EXCEPTIONS
} catch (QException &e) {
promise.reportException(e);
} catch (...) {
promise.reportException(QUnhandledException(std::current_exception()));
}
#endif
promise.reportFinished();
}
I added
DEFINES += "QT_NO_EXCEPTIONS=1"
to .pro
file.
Then I got:
Build-tool 31.0.0 is missing DX at C:\Users\D-Ef\AppData\Local\Android\Sdk\build-tools\31.0.0\dx.bat
And fixed build-tools\31.0.0\dx.bat
and build-tools\31.0.0\lib\dx.jar
files in SDK:
After that it built and I installed it on the emulator:
adb install android-build-debug.apk