【发布时间】:2023-01-03 03:26:33
【问题描述】:
我的 AndroidManifest.xml 有问题。
- 无法解析符号“@mipmap/ic_launcher”
- 无法解析符号“@style/LaunchTheme”
- 无法解析符号“@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