Download sources and javadocs for an android project


I am trying to have gradle download sources and javadocs for all dependencies for all projects - it’s works apart from a dependency in my android project. I need the sources and javadocs so my IDE can provide hints/hover/help etc.

I use the eclipse plugin to do the downloading, here are the important parts of my build.gradle:

allprojects {
    apply plugin: "eclipse"

    eclipse {
        classpath {
            downloadJavadoc = true
            downloadSources = true

project(":android") {
    apply plugin: ""

    configurations { natives }

    dependencies {
        implementation project(":core")
        api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"

It’s the gdx-backend-android dependency that has no source or javadocs. I think it’s an AAR, is that the issue here?



I read elsewhere that eclipse does not support android development, though I don’t have a decent up-to-date reference for that. Most discussions on this seem to be years old:

My solution in the end was to use Android Studio, which appears to be the only way.

1 Like