Classes of linked subprojects not found
akidee opened this issue · 6 comments
The main project has subprojects A and B, while B depends on A:
B/B.gradle:
...
dependencies {
compile project(':A')
compile 'com.android.support:appcompat-v7:25.3.1'
...
testCompile ...
}
...
The command ./gradlew -b B/B.gradle generateReleaseJavadoc
results in many errors because gradle will find external while not finding internal dependencies:
:akandroid_camera:generateReleaseJavadoc
...
/project/B/src/main/java/de/.../x/ClassX.java:2564: error: cannot find symbol
protected @Nullable Range<Integer> ...() {
^
symbol: class Range
location: class ClassX
/project/B/src/main/java/de/.../ClassX.java:12: error: package de....x does not exist
Inside Android Studio, all those classes are found.
The documentation is generated despite those errors, but documented annotations may be missing and links are not resolved.
Any idea how to fix this?
I'm closing this issue due to inactivity. If you have any further input on the issue, don't hesitate to reopen this issue or post a new one.
This is still broken. It's the main reason I haven't switched over to this plugin. Would love to see this fixed.
Do you have any suggestions how to make this work? I've also got those warnings when not using this plugin and just the normal stuff.
No. I don't get these warnings when using Gradle's javadoc task.
What does your setup look like?