I can easly convert java code into kotlin in android studio3.0 but can any help to convert it again into android java code.
Asked
Active
Viewed 4,384 times
-2
-
Only by hand. Can you explain *why* do you want this? What's the motivation? – Eugen Pechanec Nov 05 '17 at 12:38
-
1You can find your answer: [ here](https://stackoverflow.com/questions/34588117/how-can-i-convert-a-part-of-java-source-file-to-kotlin) – Reza Hamzehei Nov 05 '17 at 12:42
-
1Possible duplicate of [How to convert a kotlin source file to a java source file](https://stackoverflow.com/questions/34957430/how-to-convert-a-kotlin-source-file-to-a-java-source-file) – yacc Nov 05 '17 at 12:42
1 Answers
0
in IntelliJ or Android Studio, you just have to do the following to get java code from kotlin:
- Menu > Tools > Kotlin > Show Kotlin Bytecode
- Click on the Decompile button
- Copy the java code
![](../../users/profiles/5188516.webp)
Abdul Waheed
- 3,994
- 4
- 30
- 49