title: How to make Android Studio download dependencies sources and javadoc?
body: <p>I have already checked this post:
  <a href="https://stackoverflow.com/questions/12718753/how-to-download-dependency-sources-for-gradle-project-in-idea">How to download dependency sources for Gradle project in IDEA?</a></p>
  
  <p>But it didn't work for me. Maybe it is because they are referring to IntelliJ Idea, and I am having the issue with Android Studio.</p>
  
  <p>I have tried adding </p>
  
  <pre><code>apply plugin: 'idea'
  idea {
      module {
          downloadJavadoc = true
          downloadSources = true
      }
  }
  </code></pre>
  
  <p>Both to root's build.gradle file (I am in a multiproject setup) or to the application's build.gradle file.</p>
  
  <p>My application's gradle file:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4.2'
      }
  }
  
  repositories {
      mavenCentral()
  }
  dependencies {
      compile files('libs/android-support-v4.jar')
      compile 'com.nostra13.universalimageloader:universal-image-loader:1.8.4'
  }
  android {
      compileSdkVersion 17
      buildToolsVersion "17.0.0"
  
      defaultConfig {
          minSdkVersion 7
          targetSdkVersion 16
      }
  }
  </code></pre>
  
  <p>Then, in Android Studio when I click on any method from the universalimageloader library, I get to a screen saying that there are no sources attached. If I click attach sources it shows:
  <img src="https://i.stack.imgur.com/oV1Qg.png" alt="enter image description here"></p>
  
  <p>As you can see, only the lib's jar was downloaded to gradle cache. No *-sources.jar or *-javadoc.jar were downloaded. I have cleaned project, removed .gradle folder to force it to download again from maven. No luck.</p>
  
  <p>I double checked that universal image loaded has sources and javadoc available in maven, so that is not the problem.</p>
  
  <p>Thanks!</p>