79418725

Date: 2025-02-06 16:55:30
Score: 1
Natty:
Report link

This type of error usually occurs when there is a problem with the Flutter and Kotlin dependencies in your Android project. In this case, the FlutterFragmentActivity class cannot be resolved correctly.

-Review your dependencies: Make sure that the required dependencies are included in your app's build.gradle file in the dependencies section

implementation 'io.flutter:flutter_embedding_debug:<flutter_version>'

-Update Flutter and Gradle

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity() { }

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Josu Alejandro Hernndez Castel