我刚刚将我的应用程序的图标更改为较新的图标,现在每当我尝试构建和运行应用程序时,我都会收到以下错误:
Project\build\app\intermediates\manifests\full\debug\AndroidManifest.xml:49: AAPT:
error: resource style/LaunchTheme (aka
com.example.project:style/LaunchTheme) not found.
我使用了 flutter_launcher_icon 包来制作图标,我已经尝试了在线提供的解决方案,但它们似乎都没有帮助
最佳答案
好的,看来您没有 styles.xml
具有主题的文件。
创建一个名为 styles.xml
的文件文件夹内 res/values
并添加以下内容:
<?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>
关于android - 找不到资源样式/LaunchTheme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52043792/