Search code examples
androidreact-nativeapkrelease

UncheckedIOException: java.nio.file.AccessDeniedException


On trying to create release apk from my react native app. I am getting this following error:

Caused by: org.gradle.api.UncheckedIOException: 
java.nio.file.AccessDeniedException: 

/User/TestApp/android/app/build/intermediates/res/merged/release
/drawable-hdpi
/node_modules_reactnavigationstack_dist_views_assets_backicon.png

Debug apk , builds fine. But I'm stuck in making release apk.

reactnavigationstack_dist_views_assets_backicon : I cannot figure out this back icon issue.

Cay somebody point this issue?

Thanks you for your reading .


Solution

  • Actually this issue is due to duplicate assets issues in android folder. Verify once again to remove duplicates.

    Hope this helps.