Maybe this will help others.
Currently, an existing class diagram generator, such as SimpleUML (you can download it from the plugin repository for Android studio), cannot create a Kotlin class diagram. But you can use this plugin for Kotlin effortlessly.
Open the activity lesson in android studio.
Go to tool → Kotlin → Show Kotlin bytecode. A new side tab will open, which will show the bytecode of the selected activity class.
Click on the top decompilation of the generated Kotlin bytecode that the className.decompile.java class generates.
Click on the class name, and then right-click. In many options, click "Add to simpleUML diagram". Create a new one or add a chart to an existing file.
If you have any problems, let me know.
Note: - If you install SimpleUML, this may create a problem. Make sure you download SimpleUMLCE for best performance.
source share