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 6,563 times
0
-
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
-
something funny is how android underestimated the unification java-only-time brought... now you have to garbage yourself with more and more programming languages at the same time competing to have a good grasp at all the langs... This obviously strains developers. If only they could provide a way to translate kotlin to java... and funny how java to kotlin is feasible yet the reverse MUST involve decompiling... – D. Sikilai Feb 22 '22 at 11:47
1 Answers
1
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

Abdul Waheed
- 4,540
- 6
- 35
- 58