Use Android Studio's decompilation tool.

This article mainly explains how the Android studio IDE decompiles the Kotlin language into Java language. Its main function is to help Kotlin learning to a certain extent.

1. Write a Kotlin file

Write a class or a function in Kotlin

2. Use Android studio tools

Click Tools---Kotlin----Show Kotlin ByteCode, as shown below

3. Compile

A display area about Kotlin ByteCode will appear on the right, click Decompile in the upper left corner

 4. Compilation completed

 

5. Finally

Of course, Android studio also has many plug-ins for decompilation. If you want to read it, I will continue to update the corresponding decompilation articles in the future. Please pay more attention, like and share.

Thanks~

Guess you like

Origin blog.csdn.net/qq_41998504/article/details/123180348