Код: Выделить всё
flutter pub get
flutter pub run flutter_launcher_icons
< /code>
Однако, когда я запустил этот код на терминале, это был результат: < /p>
Warning: flutter_icons has been deprecated please use flutter_launcher_icons instead in your yaml files
• Creating default icons Android
✕ Could not generate launcher icons
PathNotFoundException: Cannot open file, path = 'assets/app_logo.png' (OS Error: The system cannot find the file specified.
, errno = 2)
< /code>
Я уже добавил код пакета запуска значка в моем pubsec.yaml: < /p>
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.13.1
flutter_icons:
android: true
ios: true
image_path: "assets/app_logo.png"
(htps://i.sstatic.net/wxdds.pg). Кто -нибудь, пожалуйста, помогите мне, чтобы я мог правильно это исправить.>
Подробнее здесь: https://stackoverflow.com/questions/768 ... -file-path