Android error while compiling missing lib - System cannot find specified file

Asked

Viewed 291 times

2

Good evening, I had added some libs to my android application, but then I changed my mind and removed them but when I go to compile the code is giving the following error

Error:Execution failed for task :app:compileDebugJavaWithJavac. java.io.Filenotfoundexception: C: Users Felip Androidstudioprojects login app libs httpcore-4.4.4.jar (The system cannot find the specified file)

I’ve done the libs refresh I’ve done the clean and nothing keeps giving this mistake anyone knows what I can do ?

  • You should have this file "httpcore-4.4.4.jar" on the ".. /app/libs" foot to stop this error

1 answer

2


Marcos, check in your build.gradle if there is any reference to this lib, if there is, remove the line.

He’ll probably be like this:

compile files('libs/httpcore-4.4.4.jar')

After removing the reference, save your Gradle and try to compile the project again.

  • 1

    Hello your reply led me to another path that helped me in the same way, I clicked on app went in modules Settings and removed the dependencies of the application ai compiled, what occurred was the following even having removed the libs the project kept the libs in dependency

  • Yes Marcos, I forgot to put that around also works, I’m glad it worked, hug!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.