Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Compile for Android causes "The parameter is incorrect"
Qt 6.11 is out! See what's new in the release blog

Compile for Android causes "The parameter is incorrect"

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidmergedebugasset
2 Posts 2 Posters 846 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Lounge Lizard Larry
    wrote on last edited by Lounge Lizard Larry
    #1

    I'm trying to compile my first Android app using Qt. I'm getting really close but can't get past the error below. I don't understand the "The parameter is incorrect.".

    I'm using SDK Version: 26.1.1, NDK Version: 19.2.5345600 because the tools I'm using (Felgo) requires/recommends these versions.

    Can someone explain how to fix this? (I'm not sure if the Warnings are related or can be safely ignored). I should also point out that with each recompile the error remains the same, but the file (triggering the error) changes.

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugAssets'.
    > java.nio.file.FileSystemException: L:\MySimpleApp\Project\build-android-arm8-Debug\android-build\build\intermediates\merged_assets\debug\mergeDebugAssets\out\--Added-by-androiddeployqt--\qml\Qt: The parameter is incorrect.
    
    
    * 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 31s
    19 actionable tasks: 3 executed, 16 up-to-date
    AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: shutdown
    VCS Checkout Cache (L:\MySimpleApp\Project\build-android-arm8-Debug\android-build\.gradle\vcsWorkingDirs) has not been cleaned up in 0 days
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    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.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.Fusion.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
    Building the android package failed!
    20:54:30: The process "C:\Felgo\Felgo\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project MySimpleApp (kit: Android for arm64-v8a (Clang Qt 5.13.2 for Android ARM64-v8a))
    When executing step "Build Android APK"
    20:54:30: Elapsed time: 04:13.
    
    M 1 Reply Last reply
    0
    • L Lounge Lizard Larry

      I'm trying to compile my first Android app using Qt. I'm getting really close but can't get past the error below. I don't understand the "The parameter is incorrect.".

      I'm using SDK Version: 26.1.1, NDK Version: 19.2.5345600 because the tools I'm using (Felgo) requires/recommends these versions.

      Can someone explain how to fix this? (I'm not sure if the Warnings are related or can be safely ignored). I should also point out that with each recompile the error remains the same, but the file (triggering the error) changes.

      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':mergeDebugAssets'.
      > java.nio.file.FileSystemException: L:\MySimpleApp\Project\build-android-arm8-Debug\android-build\build\intermediates\merged_assets\debug\mergeDebugAssets\out\--Added-by-androiddeployqt--\qml\Qt: The parameter is incorrect.
      
      
      * 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 31s
      19 actionable tasks: 3 executed, 16 up-to-date
      AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: shutdown
      VCS Checkout Cache (L:\MySimpleApp\Project\build-android-arm8-Debug\android-build\.gradle\vcsWorkingDirs) has not been cleaned up in 0 days
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
      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.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.Fusion.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
      Building the android package failed!
      20:54:30: The process "C:\Felgo\Felgo\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14.
      Error while building/deploying project MySimpleApp (kit: Android for arm64-v8a (Clang Qt 5.13.2 for Android ARM64-v8a))
      When executing step "Build Android APK"
      20:54:30: Elapsed time: 04:13.
      
      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      The problem is likely the NDK version, which is optimal for Qt 5.12.3, but likely not compatible with 5.15

      1 Reply Last reply
      0

      • Login

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