I tried various ways to solve this problem but nothing worked for me. Here is place where I have errors in AndroidManifest.xml:
android:label="cartoon_magic"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
Attribute android:icon is not allowed here
Unresolved class 'MainActivity'
Attribute android:launchMode is not allowed here
Attribute android:theme is not allowed here
Attribute android:configChanges is not allowed here
Attribute android:hardwareAccelerated is not allowed here
Attribute android:windowSoftInputMode is not allowed here
I guess there is a problem with import io.flutter.embedding.android.FlutterActivity, but I have no idea how to fix it.
Here is my MainActivity.kt
package com.example.cartoon_magic
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
Here is structure of project:

I am completely confused and do not know in which direction to look for the problem. Thanks for the help!