Convert an existing Flutter Kotlin project to Flutter Java project

Posted by Ramesh Singh | Updated on

Convert an existing Flutter Kotlin project to Flutter Java project. I had the same problem, for me this solution works.

1. Move folder com.example.test_app (any name you have) from android/app/src/main/kotlin -> android/app/src/main/java
2. Replace MainActivity.kt with Java version, or copy down here.

3. Remove following code android/app/build.grandle

4. In the same place replace following:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers