Build for Android failed after update on Qt 5.15.8. How to fix it?
Solved
Mobile and Embedded
-
wrote on 13 Feb 2022, 09:09 last edited by
Hello!
I've got updated Qt on Qt 5.15.8 and got stacked with that error:FAILURE: Build failed with an exception. * Where: Build file '/Users/alexandr/Projects/project/project-Android_Qt_5_15_8_Clang_Multi_Abi-Debug/android-build/build.gradle' line: 17 * What went wrong: A problem occurred evaluating root project 'android-build'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 4s Building the android package failed! -- For more information, run this command with --verbose. 12:05:53: The process "/Users/alexandr/Tools/QtCommercial/5.15.8/android/bin/androiddeployqt" exited with code 14. Error while building/deploying project KRN_MailClient_Mobile (kit: Android Qt 5.15.8 Clang Multi-Abi) When executing step "Build Android APK"
Is it next one bug or I am missing something?
-
wrote on 13 Feb 2022, 10:24 last edited by
Just downgraded to Qt 5.15.7. Everything working fine. Suppose it's next one bug ...
-
wrote on 13 Feb 2022, 10:27 last edited by
Issue closed. Opened bug report https://bugreports.qt.io/browse/QTBUG-100807
1/3