Android Studio flutter项目未创建启动器图标

tvz2xvvm  于 2023-04-18  发布在  Android
关注(0)|答案(1)|浏览(170)

我有一个旧版本的Android Studio和SDK。我卸载了这两个并安装了最新的Android Studio Flamingo和SDK。我创建了一个新的模板项目,在iOS和Android上运行良好。在iOS上,它创建启动图标,但在Android上不这样做,在物理设备以及模拟器上。
在AndroidManifest.xml中,我看到许多标记都带有下划线,但我不知道如何修复它们。
Flutter刮刀输出

flutter doctor -v                
[✓] Flutter (Channel stable, 3.7.7, on macOS 12.6.3 21G419 darwin-x64, locale en-US)
    • Flutter version 3.7.7 on channel stable at /Users/lk/programs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2ad6cd72c0 (5 weeks ago), 2023-03-08 09:41:59 -0800
    • Engine revision 1837b5be5f
    • Dart version 2.19.4
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/lk/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.76.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (3 available)
    • Pixel 2 XL (mobile) • 806KPDT1944522 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)     • macos          • darwin-x64     • macOS 12.6.3 21G419 darwin-x64
    • Chrome (web)        • chrome         • web-javascript • Google Chrome 112.0.5615.49

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

所有帮助非常感谢

ars1skjm

ars1skjm1#

使用这个包会有帮助,flutter_launcher_icons
它是一个命令行工具,可以简化更新Flutter应用程序的启动器图标的任务。完全灵活,允许您选择希望更新启动器图标的平台,如果您愿意,可以选择保留旧的启动器图标,以防将来某个时候想要恢复。

相关问题