dart 无法解析符号AndroidManifest.xml

dced5bon  于 2023-01-03  发布在  Android
关注(0)|答案(1)|浏览(212)

我的AndroidManifest.xml有三个问题。
1.无法解析符号“@mipmap/ic_launcher”
1.无法解析符号“@style/LaunchTheme”
1.无法解析符号“@style/NormalTheme”

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.example.moneyreminder"
    android:versionCode="5"
    android:versionName="5.0">
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
    <uses-sdk
        android:minSdkVersion="16"
         />
   <application
        android:label="moneyreminder"

        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            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"
            tools:ignore="Instantiatable"
            tools:targetApi="honeycomb">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
                android:name="io.flutter.embedding.android.NormalTheme"
                android:resource="@style/NormalTheme"

              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

我尝试使缓存无效,但没有任何改变

waxmsbnn

waxmsbnn1#

你的项目android/app/src/main/res文件夹里有所有这些文件夹吗?

如果没有,则创建它们并添加其资源。

相关问题