我尝试了很多方法和修复方法,但是我的应用程序图标仍然没有显示。我正在使用flutter,但我使用了flutter_launcher_icons
程序包,但仍然没有用。
这是我的pubspec.yaml dev_depend:
dev_dependencies:
flutter_launcher_icons: "^0.7.3"
flutter_test:
sdk: flutter
,这里是配置:
flutter_icons:
android: "launcher_icon"
ios: "AppIcon"
image_path_ios: "assets/icon/icon.png"
image_path: "assets/icon/icon.png"
这是我的flutter doctor
:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0-1.0.pre.118, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Community Edition (version 2018.2.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
! Doctor found issues in 1 category.
这是我的资产目录应用图标,如下所示:
答案 0 :(得分:0)
由于@SamiHaddad,我没有在Xcode的Runner文件的常规部分中将AppIcon设置为String.Substring(int startIndex, int length)
。这解决了我的问题。