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. Gradle error 14 - no explanation of what is wrong
Forum Updated to NodeBB v4.3 + New Features

Gradle error 14 - no explanation of what is wrong

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 657 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.
  • ocgltdO Offline
    ocgltdO Offline
    ocgltd
    wrote on last edited by ocgltd
    #1

    I am trying to build a project for Android on MacOS with Qt Creator 4.14, Qt 5.15.2, NDK 3.0, SDK 21.3.6528147. Qt shows green checkmarks for Java/Android/OpenSSL

    When I compile my app I see these errors during the "Generating Android Package" step (I think that's gradle called by androiddeployqt):

    Initialized native services in: /Users/admin/.gradle/native
    The client will now receive all logging from the daemon (pid: 1778). The daemon log file: /Users/admin/.gradle/daemon/5.6.4/daemon-1778.out.log
    Starting 9th build in daemon [uptime: 53 mins 14.777 secs, performance: 99%]
    Using 2 worker leases.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
    > Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().
    
    * 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 971ms
    Building the android package failed!
    20:04:18: The process "/Users/admin/Qt/5.15.2/android/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project BFChristmasParty (kit: Android Qt 5.15.2 Clang Multi-Abi)
    When executing step "Build Android APK"
    20:04:18: Elapsed time: 01:42.
    

    I can't figure out what is going wrong (or how to solve it). I have already turned on "verbose output" option in the "Build Android APK" step.

    I know nothing about gradle, and I don't see where i could a "--stacktrace" option in Qt build settings. (to get more info). I tried removing fileHashes.lock file as suggested elsewhere but no luck. My project is on a SMB share which may be relevant based on some old posts

    Can someone suggest what needs to be fixed?

    1 Reply Last reply
    0
    • ocgltdO Offline
      ocgltdO Offline
      ocgltd
      wrote on last edited by
      #2

      SOLVED - there is a known issue regarding permissions when running gradle with files stored on an SMB share. I moved my server files to an NFS share and all works great. (I would give the link but already lost it)

      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