Generate Javadoc error Android Studio

后端 未结 5 1099
-上瘾入骨i
-上瘾入骨i 2021-02-07 04:20

For some reason I cannot generate a javadoc with Android Studio, after like 96 warnings it gives me this:

95 warnings
java.lang.NullPointerException
at com.sun.t         


        
5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 04:46

    I don't think this issue is specific to Android Studio. I'm guessing it will happen anytime you've got Unicode characters in your JavaDoc comments.

    Try using the following command:

    javadoc -encoding utf-8
    

    Alternatively, you can just use Unicode escapes (e.g. \u0000) instead of including Unicode characters directly.

    In Eclipse, you can add extras to the JavaDoc command:

    Project -> Generate Javadoc -> Next -> on the last page, in Extra Javadoc options write:

    -encoding UTF-8
    

提交回复
热议问题