fat-aar-android icon indicating copy to clipboard operation
fat-aar-android copied to clipboard

Fix "Could not copy zip entry … Permission Denied" errors

Open ngsilverman opened this issue 2 years ago • 2 comments

On systems where unzipping an archive restores the file permissions, if the original file permissions are too restrictive, the copy task fails.

For example:

Execution failed for task ':module:mergeClassesRelease'.
> Could not copy zip entry …/module/build/intermediates/exploded-aar/androidx.benchmark/benchmark-macro-junit4/1.1.0-rc02/release/classes.jar!META-INF/androidx.benchmark_benchmark-macro-junit4.version to '…/module/build/intermediates/fat-aar/merge_classes/release/META-INF/androidx.benchmark_benchmark-macro-junit4.version'.
   > …/module/build/intermediates/fat-aar/merge_classes/release/META-INF/androidx.benchmark_benchmark-macro-junit4.version (Permission denied)

ngsilverman avatar Jul 27 '22 17:07 ngsilverman

@kezong I got same error "Permission Denied" and this PR seem fixed that. Could you please review and merge the PR and release a new version?

hmphu avatar Oct 11 '23 15:10 hmphu