Dar*_*adi 3 icons android dart flutter
我刚刚将我的应用程序的图标更改为更新的图标,现在每当我尝试构建和运行该应用程序时,我都会收到以下错误:
Project\build\app\intermediates\manifests\full\debug\AndroidManifest.xml:49: AAPT:
error: resource style/LaunchTheme (aka
com.example.project:style/LaunchTheme) not found.
Run Code Online (Sandbox Code Playgroud)
我使用 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>
Run Code Online (Sandbox Code Playgroud)
我像这样解决了我的 androidmanifest-> 调用 NormalTheme 但我的 styles.xml 文件夹有 LaunchTheme 所以我更改名称问题已经解决了:)
归档时间: |
|
查看次数: |
5659 次 |
最近记录: |