Say I want to remove the 'facebook' folder. When I right click on that folder, and go to refactor, the delete option is grayed out. But I want to delete it. I also tried selecting the folder and pressing delete on the keyboard. Still could not delete.
You can switch to Project and delete it.
Here is my example. I have created a JNI module (the highlighted folder) in my project:
Now you just need to switch from "Android" to "Project" and click delete:
Part of the reason might be that the facebook
(sdk) folder is part of your project (in used in your project) now and Android Studio doesn't let you do that.
If so, I am sure it will be in the settings.gradle
as follow.
include ':facebook'
and in your app folder build.gradle
, at the below, there's the dependencies
and the folder would be included as follow.
compile project(':facebook')
Remove those lines and try removing it.
You can manually remove the folder as well but it's a good practice you remove it from the IDE because the IDE will check whether it's safe to do so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With