Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83875

androiddeployqt failling becuase build path is too long

XMLWordPrintable

    • Android, Windows
    • 4041610cb202699a47268975e5aaecaa1f182c0a (qt/qtbase/dev), 19154bf0e75a52f8611843fd49729b79115b7bc7 (qt-creator/qt-creator/master), 6b05970cd7e1efabc3419c6df7abd2c9c31f6c44 (qt/qtbase/5.15)
    • 2020wk22, 2020wk24

      Android project build and deployment fails on Windows due to a long build path. androiddeployqt and/or Qt Creator should check for this and give a warning for such an issue.

      Warning: QML import could not be resolved in any of the import paths: com.qt.backend
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
      > Task :preBuild UP-TO-DATE
      > Task :preDebugBuild UP-TO-DATE
      
      > Task :compileDebugAidl FAILED
      aidl.exe E 04-28 13:56:10  7852 18724 io_delegate.cpp:50] Failed to GetFullPathName(C:\Users\emman\Documents\Qt\QtCreator\build-HelloWorldGoogale-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android_f02cf0-Debug\android-build\build\generated\aidl_source_output_dir\debug\out\org\kde\necessitas\ministro\IMinistroCallback.java)
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':compileDebugAidl'.
      > 1 exception was raised by workers:
        java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\emman\AppData\Local\Android\Sdk\build-tools\28.0.3\aidl.exe with arguments {-pC:\Users\emman\AppData\Local\Android\Sdk\platforms\android-29\framework.aidl -oC:\Users\emman\Documents\Qt\QtCreator\build-HelloWorldGoogale-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android_f02cf0-Debug\android-build\build\generated\aidl_source_output_dir\debug\out -IC:\Users\emman\Documents\Qt\QtCreator\build-HelloWorldGoogale-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android_f02cf0-Debug\android-build\src -IC:\Users\emman\Documents\Qt\QtCreator\build-HelloWorldGoogale-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android_f02cf0-Debug\android-build\aidl -IC:\Qt\5.15.0\android\src\android\java\src -IC:\Users\emman\Documents\Qt\QtCreator\build-HelloWorldGoogale-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android_f02cf0-Debug\android-build\src\debug\aidl -dC:\Users\emman\AppData\Local\Temp\aidl3382430194412554756.d C:\Qt\5.15.0\android\src\android\java\src\org\kde\necessitas\ministro\IMinistroCallback.aidl}
      
      
      * 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
      
      
      1 actionable task: 1 executed
      Building the android package failed!
        -- For more information, run this command with --verbose.
      
      13:56:10: The process "C:\Qt\5.15.0\android\bin\androiddeployqt.exe" exited with code 14.
      Error while building/deploying project HelloWorldGoogale (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.15.0 for Android))
      When executing step "Build Android APK"
      

       

      One option is to make the kit names in QC or the build directory shorter. 

        For Gerrit Dashboard: QTBUG-83875
        # Subject Branch Project Status CR V

            assam Assam Boudjelthia
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes