Linux - Gradle can't delete temporary files and build fails -
when execute $ gradle :android:clean
or $ gradle :android:assembledebug
get
failure: build failed exception. * went wrong: execution failed task ':android:mergedebugresources'. > error: not delete path '/media/naxa/<ntfs partition>/<project path>/android/build/intermediates/incremental/mergedebugresources/merged.dir/values-sk'.
i'd mention project on ntfs partition.
i found workaround, i'm using --continue
option ignore build failures. want know why file can't removed. blocked anything?
it's known issue has been fixed in studio 2.2 preview 3. can find more info in thread.
if on windows , see issue, follow comment #64:
there tool can use stacktrace of code opened file still hold process. tool used generate stack trace partially fixed.
http://file-leak-detector.kohsuke.org/
you need run studio java agent.
if on linux , using ntfs, uncomment following property in bin/idea.properties :
#--------------------------------------------------------------------- # idea can copy library .jar files prevent locking. # default behavior enabled on windows , disabled on other platforms. # uncomment property override. #--------------------------------------------------------------------- # idea.jars.nocopy=false
if of continue see issue using 2.2 beta or later, please file new bug.
Comments
Post a Comment