Aruka J Aruka J - 3 months ago 18
Android Question

If I remove a dependency from Gradle does it get uninstalled?

I included an open source library in my Gradle dependency list and no longer wish to use it. If I remove the line from the Gradle compile path, does the project get removed from my app or do I have to somehow go delete it manually somewhere?


If it's a compiled library under the dependencies list, Android Studio will ask you to SYNC NOW, in order to clean and rebuild the project. It will indeed be removed. (You can compare the apk size before/after, you will see)

dependencies {
    //compile 'org.greenrobot:eventbus:3.0.0'