Solved Gradle error 14 - no explanation of what is wrong
-
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?
-
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)
-
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)