title: Migrating flutter kotlin to flutter java
body: <p>I have an app almost completed but I have encountered a problem. I need to add native code to my app, I am using method channel to implement native code. The problem is I want java as my native language. But unfortunately, I created the project with Kotlin as the native one. I need to migrate my file to java.</p>
  <p>I tried:</p>
  <ol>
  <li><p>Changing the com.example files from kotlin to java directory and changing dependencies accordingly. (<a href="https://stackoverflow.com/a/58602076/14555109">https://stackoverflow.com/a/58602076/14555109</a>)</p>
  </li>
  <li><p>Tried [Flutter create -a -java .] It creates an entire flutter file inside the directory specified.</p>
  </li>
  </ol>
  <p>Both did not work out for me. Can anyone help me with other methods to migrate the file?</p>