Android project build error
Solved
General and Desktop
-
wrote on 6 Oct 2019, 10:33 last edited by
Hello!
I want to build the test project for
Android
, but it displays the following error:FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android-build'. > Cannot convert URL 'C:Qt5.13.1android_arm64_v8a/src/android/java/res' to a file. * 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 9s -- Skipping C:/Qt/5.13.1/android_arm64_v8a/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so. -- Skipping C:/Qt/5.13.1/android_arm64_v8a/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so. Building the android package failed! -- For more information, run this command with --verbose. 13:26:31: The process "C:\Qt\5.13.1\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project TestMobile (kit: Android for arm64-v8a (Clang Qt 5.13.1 (android_arm64_v8a))) When executing step "Build Android APK"
I have configured SDK/NDK successfully:
How to fix this issue? Thanks.
-
wrote on 6 Oct 2019, 11:00 last edited by A.A.SEZEN 10 Jun 2019, 11:04This post is deleted!
-
wrote on 8 Oct 2019, 06:53 last edited by Cobra91151 10 Aug 2019, 06:54
I have removed the
Android Studio
and checked it again, but still the same error.* What went wrong: A problem occurred configuring root project 'android-build'. > Cannot convert URL 'C:Qt5.13.1android_armv7/src/android/java/res' to a file. * Try: Run with --stacktrace option to get the stack trace. Run with --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 8s Building the android package failed! 09:49:02: The process "C:\Qt\5.13.1\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project TestMobile (kit: Android for armeabi-v7a (Clang Qt 5.13.1 (android_armv7))) When executing step "Build Android APK"
To investigate this issue better, I must run these commands:
-stacktrace
,--debug
,--scan
. How to add these parameters toQt Creator
? Thanks. -
wrote on 14 Oct 2019, 12:58 last edited by
I have fixed the issue, the problem was with wrong project path, also I set
ANDROID_HOME
andANDROID_SDK_ROOT
environment variables. The issue is resolved.
1/4