title: How to add fragment activity to MainActivity.java or MainAcyivity.kt
body: <p>I am trying to build fingerprint fitur in my flutter apps and I am using <a href="https://pub.dev/packages/local_auth" rel="nofollow noreferrer">local_auth package</a>... the problem is that I always get below error-</p>
  <pre><code>PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null)
  </code></pre>
  <p>I try to add FragmentActivity to MainActivity.kt but it doesn't work.. here is the structure of my folder... so should I create MainActivity.java? and where should I place MainActivity.java in my folder?</p>
  <p><a href="https://i.stack.imgur.com/hqhVf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hqhVf.png" alt="enter image description here" /></a></p>
  <p>and here is the content of my MainActivity.kt</p>
  <pre><code>package com.project
  
  import androidx.annotation.NonNull;
  import io.flutter.embedding.android.FlutterActivity
  import io.flutter.embedding.engine.FlutterEngine
  import io.flutter.plugins.GeneratedPluginRegistrant
  
  class MainActivity: FlutterActivity() {
      override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
          GeneratedPluginRegistrant.registerWith(flutterEngine);
      }
  }
  </code></pre>