Generation steps
Menu Tools -> Generate JavaDoc!
Problem:
1. When exporting JavaDoc, there is a garbled error error: Unmappable characters encoded in GBK
Menu Tools -> Generate JavaDoc, the configuration panel pops up.
In the Other command line arguments field, enter: -encoding utf-8 -charset utf-8
2. Prompt that the package android.util does not exist.
Add Android.jar under sdk->platform Go to libs under complieOnly ("files('libs/android.jar")
3.javadoc can only generate doc in java language
Officially launched dokka, which can generate java and kotlin mixed language doc
https://book.kotlincn.net/text/kotlin-doc.html
https://github.com/Kotlin/dokka/blob/master/README.md
https://www.jianshu.com/p/b091e5f2e919