2

I have configured as follows in app/build.gradle, but it not works. Can someone tell me how to disable download of sources and javadoc? The version of AndroidStudio is 4.0, and the grade plugin version is also 4.0.0

idea {
    module {
        downloadJavadoc = false

        downloadSources = false
    }
}
houweilong
  • 46
  • 2
  • Does this answer your question? [How to prevent gradlew from download anything?](https://stackoverflow.com/questions/43088767/how-to-prevent-gradlew-from-download-anything) – Soutzikevich Jun 11 '20 at 08:59
  • Sorry, that question is different. before 3.6 version of Android Studio, there is one setting that skip download of sources and javadoc, but after 3.6, that setting has disapper, so I want to know how to disable it. Thanks. – houweilong Jun 11 '20 at 09:13
  • same issue , android studio download source.jar and javadoc.jar take long of time – HangoX Sep 13 '20 at 15:33

1 Answers1

0

Add idea plugin to gradle file like this:

plugins {
    ...
    id 'idea'
}
Nikita Kulikov
  • 146
  • 1
  • 10