Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Android project build error

    General and Desktop
    2
    4
    294
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Cobra91151
      Cobra91151 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:

      2019-10-06_132919.png

      2019-10-06_133213.png 2019-10-06_133225.png

      How to fix this issue? Thanks.

      1 Reply Last reply Reply Quote 0
      • A.A.SEZEN
        A.A.SEZEN last edited by A.A.SEZEN

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • Cobra91151
          Cobra91151 last edited by Cobra91151

          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 to Qt Creator? Thanks.

          1 Reply Last reply Reply Quote 0
          • Cobra91151
            Cobra91151 last edited by

            I have fixed the issue, the problem was with wrong project path, also I set ANDROID_HOME and ANDROID_SDK_ROOT environment variables. The issue is resolved.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post