Git Product home page Git Product logo

Comments (2)

rogerhu avatar rogerhu commented on August 16, 2024

The quick fix based on https://stackoverflow.com/questions/67719223/javadoc-gradle-task-with-androidx-library:

     task androidJavadocs(type: Javadoc) {
     source = android.sourceSets.main.java.srcDirs
     classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-
+    classpath += files(android.libraryVariants.collect { variant ->
+      variant.getJavaCompileProvider().get().classpath.files
+    })
     if (JavaVersion.current().isJava8Compatible()) {
       allprojects {
         tasks.withType(Javadoc) {

However, you should be able to use the new Maven publish library for Android apps now instead of the gradle/gradle-mvn-push.gradle task:

https://developer.android.com/studio/publish-library/upload-library

How to figure out in the future: if you add --debug it looks like the classpath is messed up for the Javadoc task. It needs those imports in its classpath to find the AndroidX dependencies:

 Command line issued: [/Users/rogerh/Library/Java/JavaVirtualMachines/azul-11-ARM64/zulu-11.jdk/Contents/Home/bin/javadoc, @/Users/rogerh/Development/rx-preferences/rx-preferences/build/tmp/androidJavadocs/javadoc.options]
  Generated Javadoc options file has following contents:
------
-Xdoclint:none '-quiet'
-classpath '/Users/rogerh/Library/Android/sdk/platforms/android-28/android.jar'
-d '/Users/rogerh/Development/rx-preferences/rx-preferences/build/docs/javadoc'
-doctitle 'rx-preferences 2.0.2-SNAPSHOT API'
-quiet 
-windowtitle 'rx-preferences 2.0.2-SNAPSHOT API'

from rx-preferences.

preetha1326 avatar preetha1326 commented on August 16, 2024

This fixed the issue. Thank you @rogerhu

from rx-preferences.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.