-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dokka doesn't link to Android SDK classes #169
Comments
I have the same issue trying to link to RxJava's docs: externalDocumentationLink {
url = new URL ("http://reactivex.io/RxJava/1.x/javadoc")
packageListUrl = new URL ("http://reactivex.io/RxJava/1.x/javadoc/package-list")
} |
@Arasthel Hello, please make sure you using
and |
@connected-tlip |
It's defined on project-level // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.1.2-4'
ext.support_library_version = '25.3.1'
ext.dokka_version = '0.9.14'
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokka_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
} And I have the |
I have everything in the project-level buildscript {
ext {
kotlinVersion = '1.1.2-3'
dokkaVersion = '0.9.14'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokkaVersion}"
}
}
apply plugin: 'org.jetbrains.dokka'
dokka {
outputFormat = 'javadoc'
outputDirectory = "${projectDir}/dokka-generated"
processConfigurations = []
sourceDirs += files('ui/src/main/kotlin')
sourceDirs += files('presentation/src/main/kotlin')
externalDocumentationLink {
url = new URL ("http://reactivex.io/RxJava/1.x/javadoc")
packageListUrl = new URL ("http://reactivex.io/RxJava/1.x/javadoc/package-list")
}
} The hope is that I can run |
@connected-tlip It's another issue, please see #157 |
@Arasthel |
This is my library's build.gradle: https://ghostbin.com/paste/3ky2o I also modified This is the output of executing |
@Arasthel |
We need to clarify this in the readme. |
That fixed it! Thanks, everything works as it should now. |
@semoro My issue isn't that I cannot link between different modules, it's that external documentation isn't linking even with for example, val statusObservable: Observable<Int> is showing up as:
|
@connected-tlip Now you can define some custom configuration on your root project and put it in See example project of first way I've attached: |
I'm using 0.9.15, compiling from source (in order to add services) and running using the jar. What is the right way to add Android SDK links? Right now, I'm running: java -jar dokka-fatjar.jar $projectsourcedir -format $mycustomformat -output $outputdir -links https://developer.android.com/reference/^https://developer.android.com/reference/package-list^^https://developer.android.com/reference/android/support/^https://developer.android.com/reference/android/support/package-list ...and it's not finding the Android SDK classes. Any ideas? |
Hello, thank you for your great work with this tool!
I was just publishing an Android library written in Kotlin and trying to generate some docs with dokka, resulting in this:
I've tried linking with the Android reference like this:
Apparently, there are no errors as the build succeeds, but the result is what you see in the image. Every class on the Android SDK is shown as <ERROR CLASS>.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: