Plugin with id 'com.android.application' not found
Unsolved
Mobile and Embedded
-
wrote on 16 Dec 2023, 21:25 last edited by
Hello everyone,
I'm currently working on running the Coffee example using Qt for Android Clang x86_64, but I've encountered an issue during the build process. I'm using Qt version 6.6.1 on Windows, and while trying to deploy the project, the build fails with the following error message:
Generating Android Package Input file: <path>/QT/Examples/Qt-6.6.1/demos/build-coffee-Android_Qt_6_6_1_Clang_x86_64-Debug/android-coffee-deployment-settings.json Output directory: <path>/QT/Examples/Qt-6.6.1/demos/build-coffee-Android_Qt_6_6_1_Clang_x86_64-Debug/android-build/ Application binary: coffee Android build platform: android-31 Install to device: No Warning: QML import could not be resolved in any of the import paths: Coffee Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.iOS Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details FAILURE: Build failed with an exception. * Where: Build file <path>\QT\Examples\Qt-6.6.1\demos\build-coffee-Android_Qt_6_6_1_Clang_x86_64-Debug\android-build\build.gradle' line: 17 * What went wrong: A problem occurred evaluating root project 'android-build'. > Plugin with id 'com.android.application' not found. * 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. BUILD FAILED in 6s Building the android package failed! -- For more information, run this command with --verbose. 22:12:30: Der Prozess "<path>\QT\6.6.1\mingw_64\bin\androiddeployqt.exe" wurde mit dem Rückgabewert 14 beendet. Fehler beim Erstellen/Deployment des Projekts coffee (Kit: Android Qt 6.6.1 Clang x86_64) Bei der Ausführung von Schritt "Android-APK erstellen"
I have followed the standard procedures for setting up the Android environment in Qt, but it seems like there's an issue with the Gradle plugin configuration. It's not recognizing the 'com.android.application' plugin.
Has anyone encountered a similar issue or can provide insights on what might be going wrong here? Any suggestions on how to resolve this would be greatly appreciated.
Thanks in advance for your help!
-
wrote on 30 Dec 2023, 07:45 last edited by
Still not solved. Bump