androidandroid-studiokotlin

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?


Solution

  • 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.