Home > Mobile >  Unresolved package 'flutter'
Unresolved package 'flutter'

Time:05-21

I download the flutter project from git hub start implementing in my android studio to learn but I get this problem in AndroidManifest.xml file only here and I also install all dependencies. Please resolve my problem. enter image description here

enter image description here

enter image description here

CodePudding user response:

Change the android\app\src\main\AndroidManifest.xml file.

From :

<application
    android:name="io.flutter.app.FlutterApplication"

To :

<application
        android:name="${applicationName}"

 or

<application
        android:name="your_app_name"
   

add this three lines if does not exist :

<meta-data
        android:name="flutterEmbedding"
        android:value="2" />
       

CodePudding user response:

You need to change the "android:name" in android\app\src\main\AndroidManifest.xml file.

Make sure it's value is: "${applicationName}"

  • Related