How to fix issue Caused by: java.nio.file.NoSuchFileException: app/build/intermediates/external_libs_dex/release/out while signing apk?

Viewed 6472

I was able to sign my apk fine until I did some android studio update or reset something in jar files. Not sure why, but it keeps throwing the error:

Caused by: java.nio.file.NoSuchFileException: app/build/intermediates/external_libs_dex/release/out

when I try to sign my apk. I am running 100% native code and I keep seeing this come up in react native thread. Has anyone faced a similar issue before?

2 Answers

Cleaning .gradle in caches helped me. here's the commands :

rm -rf android/.gradle
rm -rf .gradle
rm -rf ~/.gradle

it will show you : /.gradle/caches: Directory not empty ( as a link) , click on it and delete the .gradle directory and it will start working again.

you can simply show hidden folder in Mac(cmd shift . (period)) and just delete the .gradle folder at the root of the project.

Related