skip to Main Content

Went to this file to get the Android Package name but after copy and pasting the name (without editing anything) suddenly face an error I cannot solve.

Not sure why this error only occured when I am halfway through the project when I open this file. How do I resolve this?

Tried to see what Inspector suggested, but did not help.
Image of Error I am facing

3

Answers


  1. The issue you mentioned doesn’t seem to be a problem. If you’re able to run the application without any trouble, it may not be a real issue.

    Login or Signup to reply.
  2. It should be like this:

    class MainActivity : FlutterFragmentActivity() {
        override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
            GeneratedPluginRegistrant.registerWith(flutterEngine)
        }
    }
    
    Login or Signup to reply.
  3. Viewing it directly as a flutter project will prompt an error. If you want to view android without an error message, you should open it according to the following steps, Tools->Flutter->Open for Editing in Android Studio

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search