Aruka J Aruka J - 3 years ago 240
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?

Answer Source

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'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download