gradle build Javadoc task fails with 'unknown tag: attr'

前端 未结 1 709
情深已故
情深已故 2021-02-20 13:08

I am attempting to build the android-autofittextview project from the command line using gradle. However, it fails every time with the following error:

/Users/me         


        
相关标签:
1条回答
  • 2021-02-20 13:55

    A javadoc tool has an argument to specify custom tags. That parameter is -tag.

    To pass that argument from gradle build file to javadoc tool add a configuration to your build.gradle as follows:

    javadoc {
        options.tags = [ "attr" ] 
    }
    

    Custom tags can be specified as single argument with <name>:<placement>:<head>:

    javadoc {
        options.tags = [ "attr:a:head" ] 
    }
    
    0 讨论(0)
提交回复
热议问题