Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing referenced libraries from project Android Studio

I am trying to get Android Studio to work with library dependencies for my project, I am using Android Studio 0.4.0.

I've removed the dependecies from the project structure dialogue, from the settings.gradle and from the build.gradle and also from my project.iml file.

I then delete the directories of the referenced libraries from my main project, but after a few seconds, the referenced library directory reappears but only contains mylibrary.iml file. Everytime I delete it, it reappears again.

Also when Android Studio loads it displays an error stating that non gradle projects can't be referenced from gradle projects but I no longer want them referenced but somehow I can't get rid of them.

The project was imported into Android Studio from an Export from Eclipse.

Thanks for any help you can provide.

like image 338
Boardy Avatar asked Jan 28 '26 23:01

Boardy


1 Answers

Generally, clicking on the Sync Project with Gradle Files button should clear up problems, but if they persist, you can close Android Studio, delete all the .idea folders and .iml files in your project and re-import.

like image 120
Scott Barta Avatar answered Jan 30 '26 16:01

Scott Barta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!