Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 241
Angela Heely Avatar asked Dec 03 '22 17:12

Angela Heely


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.

like image 54
Angela Heely Avatar answered Dec 08 '22 15:12

Angela Heely


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

like image 29
Peterstev Uremgba Avatar answered Dec 08 '22 16:12

Peterstev Uremgba