Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio classes.dex (Access is Denied)

After adding a jar as an external library, my android studio project will no longer run, I'm getting an error message:

Error:java.io.FileNotFoundException: C:\Users\xxxx\xxxx\xxxx\app\build\intermediates\dex\debug\classes.dex (Access is denied)

I've tried a myriad of things including running Android Studio as an administrator, building from command line, adding from maven, or in the project structure dialog. All to no avail.

The Jar that I've been trying to add is:

jsch-0.1.51.jar
like image 778
Ace Hyzer Avatar asked Sep 03 '25 17:09

Ace Hyzer


1 Answers

Therea are many reasons you might get the java.io.FileNotFoundException: Application\build\intermediates\dex\specific_flavour\debug\classes.dex (Access is denied) excception.

I have experienced it with my anti-virus tool. If some anti-virus is installed in your system, try turning it off (or remove it). This solved it for me.

like image 105
user2827973 Avatar answered Sep 07 '25 02:09

user2827973