How to edit the code of a library imported with Gradle in Android Studio?

7.3k views Asked by At

I'm facing a little problem with one of my libraries in Android Studio. This one is imported with a Gradle file, like this :

dependencies {
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
}

It has a known issue from its GitHub repository but I can only fix it by editing one line of code in a file of this library... The problem is that I can't find its code in Android Studio.

From another Stackoverflow post, I've found this :

apply plugin: 'idea'
idea{
    module {
        downloadJavadoc = true
        downloadSources = true
    }
}

But after applying it and reloading my Gradle configuration, I still can't find the code.

Can you help?

Thanks!

1

There are 1 answers

0
Dhrumil Shah - dhuma1981 On

You can also extend that class and override that method. After overriding just update the code according to your need and solve that bug and use your new class :-)