title: Flutter Project: MainActivity.java is missing
body: <p>I am trying to create a Platform Channel in a Flutter project to access Android-specific java code. I am creating a new Flutter Application project in Android Studio and following <a href="https://flutter.dev/docs/development/platform-integration/platform-channels" rel="noreferrer">this</a> tutorial which mentions:</p>
  <blockquote>
  <p>1- Navigate to the directory holding your Flutter app, and select the android folder inside it. Click OK.</p>
  <p>2- Open the MainActivity.java file located in the java folder in the Project view.</p>
  </blockquote>
  <p>However, the project only contains MainActivity.kt and not Java:</p>
  <p><a href="https://i.stack.imgur.com/Qktxq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Qktxq.png" alt="enter image description here" /></a></p>
  <p>I tried creating a new activity inside the java folder manually by using context menu&gt;New&gt;Activity but it doesn't work.</p>
  <hr />
  <p><strong>EDIT:</strong></p>
  <p>The best solution for this (if you can create a new project) is to uncheck &quot;Include Kotlin support for Android code&quot; when you are setting up the project. This automatically creates MainActivity.java. The same goes for Objective-C and Swift. If you want to use Objective-C, uncheck &quot;Include Swift support for iOS code&quot;</p>
  <p><a href="https://i.stack.imgur.com/wxz7f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wxz7f.png" alt="enter image description here" /></a></p>