'How do I set links to external AndroidX reference in gradle javadoc tasks?
Is there a clean way of linking androidx references in my javadoc output (which is generated by gradle javadoc task)? I am using the below task to generate references for my project. It correctly links java, android, and support library references to the generated otuput.
task myJavadoc(type: Javadoc) {
..
options {
..
links("https://docs.oracle.com/javase/7/docs/api/")
}
}
afterEvaluate {
myJavadoc.options.linksOffline("https://developer.android.com/reference", "${project.android.sdkDirectory}/docs/reference")
}
Solution 1:[1]
As mentioned by Steve in comment of How to generate links to the android Classes' reference in javadoc?
options.linksOffline('https://d.android.com/reference/', 'https://d.android.com/reference/androidx/')
will do the job
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hervemart1 |
