Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Android project build error
Forum Update on Monday, May 27th 2025

Android project build error

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 694 Views
  • 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by
    #1

    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
    0
    • A.A.SEZENA Offline
      A.A.SEZENA Offline
      A.A.SEZEN
      wrote on last edited by A.A.SEZEN
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • Cobra91151C Offline
        Cobra91151C Offline
        Cobra91151
        wrote on last edited by Cobra91151
        #3

        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
        0
        • Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by
          #4

          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
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved