Android 未找到资源样式/启动主题

Android 未找到资源样式/启动主题,android,dart,icons,flutter,Android,Dart,Icons,Flutter,我刚刚将我的应用程序的图标更改为较新的图标,现在每当我尝试构建和运行应用程序时,都会出现以下错误: Project\build\app\intermediates\manifests\full\debug\AndroidManifest.xml:49: AAPT: error: resource style/LaunchTheme (aka com.example.project:style/LaunchTheme) not found. 我使用了flatter_launcher_图

我刚刚将我的应用程序的图标更改为较新的图标,现在每当我尝试构建和运行应用程序时,都会出现以下错误:

 Project\build\app\intermediates\manifests\full\debug\AndroidManifest.xml:49: AAPT: 
 error: resource style/LaunchTheme (aka 
 com.example.project:style/LaunchTheme) not found.
我使用了flatter_launcher_图标包来制作图标,并尝试了在线提供的解决方案,但似乎都没有效果


好的,看起来您没有具有主题的
style.xml
文件

在文件夹
res/values
内创建名为
styles.xml
的文件,并添加以下内容:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
            <!-- Show a splash screen on the activity. Automatically removed when
                 Flutter draws its first frame -->
            <item name="android:windowBackground">@drawable/launch_background</item>
            <item name="android:windowFullscreen">true</item> 
        </style>
    </resources>

@可绘制/发布背景
真的

我这样解决了我的androidmanifest->call NormalTheme,但我的styles.xml文件夹有LaunchTheme,所以我更改了名称问题已经解决:)

在android文件夹中截取目录结构,还将启动主题放在xml中file@diegoveloper我已经添加了android目录的屏幕截图,我不知道该把LaunchTheme xml文件放在哪里,以前没有它,这个应用程序可以完全正常工作。Life saviour