-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Fix for weird "package android.app does not exist" and "cannot find symbol" error messages. #13
base: master
Are you sure you want to change the base?
Conversation
…ymbol" error messages. This is semi-blessed by Xavier Ducrohet himself and thus semi-official: https://groups.google.com/forum/#!searchin/adt-dev/javadoc/adt-dev/seRizEn8ICA/bafEvUl6mzsJ
I'm not sure that I'm super happy putting in something that relies on private APIs. Only way I think this would fly is if this script is versioned (via tags) to mirror the android plugin so we can depend on specific versions to ensure current and future correct behavior. |
Here's how it works in my build scripts without using private API. task javadocs(type: Javadoc) {
source = android.sourceSets.main.allJava
}
afterEvaluate {
javadocs.classpath += files(android.plugin.runtimeJarList)
} |
Yeah that's how I grab it too. You sure that's not a private API? I can't
|
Well perhaps I'm too confident calling this public API :) |
I was mostly posting this Pull Request to get the conversation going. Is the javadoc task required? |
It is required. Sonatype will not let you promote a repository to central It should only fail to compile if you are using Java 8 due to the strict
|
Actually javadoc artifact is a Maven Central requirement for jars. I On 11 February 2014 10:17, Paul Peavyhouse [email protected] wrote:
Best regards, Software engineer at Stanfy (http://stanfy.com.ua) |
Do you suspect it is an oversight that it isn't required for aars and that they will eventually make it required? |
I believe so. AAR format is still very young. But after releasing 1.0 On 11 February 2014 10:27, Paul Peavyhouse [email protected] wrote:
Best regards, Software engineer at Stanfy (http://stanfy.com.ua) |
This seems to choke on external dependencies. |
Adding the following statement makes the build successful for me when the library has any external dependencies. afterEvaluate {
androidJavadocs.classpath += project.files(android.plugin.getRuntimeJarList().join(File.pathSeparator))
// add this statement
androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
} But I'm new to gradle build script, so I don't know this is a proper way to resolve the problem. |
a lot of documentation around this with no clear solution: e.g.: chrisbanes/gradle-mvn-push#9 chrisbanes/gradle-mvn-push#13
i have this problem for android.os |
@paulpv @JakeWharton @roman-mazur @tyvsmith @KeithYokoma @yeganehaym your commits merged to https://github.com/Vorlonsoft/GradleMavenPush |
This is semi-blessed by Xavier Ducrohet himself and thus semi-official:
https://groups.google.com/forum/#!searchin/adt-dev/javadoc/adt-dev/seRizEn8ICA/bafEvUl6mzsJ