【问题标题】:Cannot resolve Symbol AndroidManifest.xml无法解析符号 AndroidManifest.xml
【发布时间】:2023-01-03 03:26:33
【问题描述】:

我的 AndroidManifest.xml 有问题。

  1. 无法解析符号“@mipmap/ic_launcher”
  2. 无法解析符号“@style/LaunchTheme”
  3. 无法解析符号“@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>
    
    

    我试图使缓存无效,但它什么也没改变

【问题讨论】:

    标签: flutter dart android-manifest


    【解决方案1】:

    你的项目中有所有这些文件夹吗android/应用程序/src/main/res文件夹 ?

    如果不创建它们并添加它们的资源。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-11
      • 1970-01-01
      • 1970-01-01
      • 2021-02-04
      • 2016-12-31
      • 1970-01-01
      相关资源
      最近更新 更多