Comments (22)
didn't work for me, master and dev both have this error.
from flutter_launcher_icons.
Same error here
flutter doctor
Flutter 0.5.8-pre.98 • channel master • https://github.com/flutter/flutter
Framework • revision f0639bb022 (10 days ago) • 2018-07-27 22:10:39 -0700
Engine • revision 72a38a6b13
Tools • Dart 2.0.0-dev.69.0.flutter-937ee2e8ca
pubspec.yaml
dev_dependencies:
flutter_launcher_icons: "^0.5.2"
[...]
flutter_icons:
android: true
ios: true
image_path: "assets/logo/web_hi_res_512.png"
# adaptive_icon_background: "#FFFAFAFA"
# adaptive_icon_foreground: "assets/icon/icon-foreground.png"
As @volkangurol stated, after flutter channel dev
, it worked as expected.
Creating icons Android
Overwriting default Android launcher icon with new icon
Overwriting default iOS launcher icon with new icon
from flutter_launcher_icons.
@devsontx please use markdown so your config has its original format
from flutter_launcher_icons.
Same here
Failed to precompile flutter_launcher_icons:main:
file:///C:/Users/aaron/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/loaders/config_loader_filesystem.dart:
13:36: Error: The parameter 'path' of the method 'ConfigFilesystemLoader::loadConfig' has type dart.core::String, which does not matc
h the corresponding type in the overridden method (dynamic).
Change to a supertype of dynamic (or, for a covariant parameter, a subtype).
Future<String> loadConfig(String path) {
^
file:///C:/Users/aaron/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/parsers/config_parser_yaml.dart:10:15:
Error: The return type of the method 'YamlConfigParser::parse' is dart.async::Future<dart.core::Map<dynamic, dynamic>>, which does n
ot match the return type of the overridden method (dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>).
Change to a subtype of dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>.
Future<Map> parse(String configText) {
^
pub finished with exit code 1
from flutter_launcher_icons.
i switched to flutter channel dev branch and updated - fixes the issue
from flutter_launcher_icons.
Damn ! I switched back to beta, then it worked 8°
flutter channel beta
flutter pub get
flutter pub pub run flutter_launcher_icons:main
Black voodoo magic, I tell you
from flutter_launcher_icons.
Hi ,
the problem is in the url of icon, because it's obligatory to make the icon in the folder icon like this :
flutter_icons:
image_path: "icon/icon.png"
android: true
ios: true
because if ou make in the path image_path: "assets/icon/icon.png" create a problem when you use the command flutter pub pub run flutter_launcher_icons:main
from flutter_launcher_icons.
same here
from flutter_launcher_icons.
Thanks for reporting this.
@christian-muertz @aaronfg @devsontx can you all post your pubspec.yaml when you received this error message?
from flutter_launcher_icons.
name: lclip
dependencies:
flutter:
sdk: flutter
intl: ^0.15.6
cupertino_icons: ^0.1.0
image_picker: ^0.4.4
cached_network_image: ^0.4.1+1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.5.2
flutter_icons:
image_path: "assets/icon/icon.png"
android: true
ios: true
flutter:
uses-material-design: true
from flutter_launcher_icons.
name: aaa
description: aaa app
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
flutter_launcher_icons: "^0.5.2"
dev_dependencies:
flutter_test:
sdk: flutter
flutter_icons:
android: true
ios: true
image_path: "assets/icon/Icon.png"
adaptive_icon_background: "#FFe3144f"
adaptive_icon_foreground: "assets/icon/Icon_adaptive.png"
assets:
- assets/images/home_button.png
- assets/images/home_button_press.png
- assets/images/up_button.png
- assets/images/down_button.png
fonts:
- family: TradeGothicBold
fonts:
- asset: assets/fonts/TradeGothic-Bold.ttf
weight: 700
from flutter_launcher_icons.
name: b
description: b Application
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
shared_preferences: ^0.4.0
url_launcher: ^3.0.0
intl: "^0.15.4"
validator: ">=0.0.4 <0.1.0"
flutter_launcher_icons: ^0.5.2
barcode_scan:
git:
url: [email protected]:devsontx/flutter_barcode_reader.git
qr_flutter: ^1.1.1
date_format: "^1.0.4"
rxdart: "^0.18.0"
connectivity: ^0.3.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_icons:
image_path: "assets/images/ic_launcher.png"
android: true
ios: "App-Icon"
flutter:
uses-material-design: true
assets:
- assets/images/someimage.png
from flutter_launcher_icons.
@christian-muertz I updated it. Thanks.
from flutter_launcher_icons.
@MarkOSullivan94 any luck? :)
from flutter_launcher_icons.
Earliest I'll get a chance to have a quick look over it will be tomorrow.
@franzsilva could you investigate?
from flutter_launcher_icons.
with flutter 0.5.1 beta no problems
from flutter_launcher_icons.
Same here with 0.6.0
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.5.8, on Mac OS X 10.13.6 17G65, locale fr-BE)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.25.1)
[✓] Connected devices (1 available)
• No issues found!
gives
Failed to precompile flutter_launcher_icons:main:
file:///Users/sergebesnard/Development/flutter/.pub-cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/loaders/config_loader_filesystem.dart:13:36: Error: The parameter 'path' of the method 'ConfigFilesystemLoader::loadConfig' has type dart.core::String, which does not match the corresponding type in the overridden method (dynamic).
Change to a supertype of dynamic (or, for a covariant parameter, a subtype).
Future<String> loadConfig(String path) {
^
file:///Users/sergebesnard/Development/flutter/.pub-cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/parsers/config_parser_yaml.dart:10:15: Error: The return type of the method 'YamlConfigParser::parse' is dart.async::Future<dart.core::Map<dynamic, dynamic>>, which does not match the return type of the overridden method (dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>).
Change to a subtype of dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>.
Future<Map> parse(String configText) {
^
pub finished with exit code 1
pubspec.yaml
flutter_launcher_icons: "^0.6.0"
flutter_icons:
android: false
ios: "value"
image_path: "assets/icon/acolyte-2-1024-fond-blanc.png"
#adaptive_icon_background: "#FFFFFF"
#adaptive_icon_foreground: "assets/icon/icon-foreground.png"
from flutter_launcher_icons.
Same here :-(
Flutter 0.5.8
Failed to precompile flutter_launcher_icons:main:
file:///Volumes/DATA/development/flutter/.pub-cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/loaders/config_loader_filesystem.dart:13:36: Error: The parameter 'path' of the method 'ConfigFilesystemLoader::loadConfig' has type dart.core::String, which does not match the corresponding type in the overridden method (dynamic).
Change to a supertype of dynamic (or, for a covariant parameter, a subtype).
Future<String> loadConfig(String path) {
^
file:///Volumes/DATA/development/flutter/.pub-cache/hosted/pub.dartlang.org/dart_config-0.5.0/lib/parsers/config_parser_yaml.dart:10:15: Error: The return type of the method 'YamlConfigParser::parse' is dart.async::Future<dart.core::Map<dynamic, dynamic>>, which does not match the return type of the overridden method (dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>).
Change to a subtype of dart.async::Future<dart.core::Map<dart.core::String, dart.core::Object>>.
Future<Map> parse(String configText) {
^
pub finished with exit code 1
dev_dependencies:
flutter_launcher_icons: "^0.6.0"
flutter_icons:
android: true
ios: true
image_path: "docs/icon.png"
from flutter_launcher_icons.
Is there anyone still having this issue?
from flutter_launcher_icons.
Gone! :D
from flutter_launcher_icons.
In my case, this happened because I've used firebase (https://pub.dev/packages/cloud_firestore) for flutter web but the official dart plugin doesn't supported Flutter web yet.
from flutter_launcher_icons.
Hi ,
the problem is in the url of icon, because it's obligatory to make the icon in the folder icon like this :
flutter_icons:
image_path: "icon/icon.png"
android: true
ios: true
because if ou make in the path image_path: "assets/icon/icon.png" create a problem when you use the command flutter pub pub run flutter_launcher_icons:main
This resolved my issue. Thanks 👍
from flutter_launcher_icons.
Related Issues (20)
- [BUG] FormatException: Missing argument for "file".
- [BUG] Execution fails when renaming the default Runner project
- [BUG] Could not find a file named "pubspec.yaml"
- [BUG] ✗ ERROR: NoConfigFoundException No configuration found in flutter_launcher_icons.yaml or in pubspec.yaml. In case file exists in different directory use --file option #0 createIconsFromArguments (package:flutter_launcher_icons/main.dart:75:7) #1 main (file:///C:/Users/ahmed/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_launcher_icons-0.10.0/bin/main.dart:7:26) #2 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:294:33) #3 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
- [BUG] Unhandled Exception: PlatformException(INVALID_ICON, The resource app_icon could not be found. Please make sure it has been added as a drawable resource to your Android head project., null, null) HOT 1
- [BUG] Could not find a file named "pubspec.yaml" HOT 2
- Dart 2.18.2 is incompatible
- [BUG] Not all futures are awaited so impossible to create a dart custom dart script HOT 1
- [BUG] printStatus not using configured logger HOT 1
- [BUG] Backround color not changing HOT 2
- [BUG] Black screen on Samsung cellphone instead of white screen with icon in the middle? HOT 1
- [BUG] Adaptive Monochrome Icons are not generated HOT 2
- [BUG] icon resolution decreased
- [BUG] Android icon is zoomed in HOT 2
- [BUG] Icon not updated HOT 2
- [BUG] could not generate launcher icon
- [BUG] Issue with flutter_launcher_icons Background Color on iOS App HOT 2
- [BUG] Could not add icon.
- Icon change is not working for MacOS[BUG]
- [BUG] App icon generation with flavors seems to corrupt project.pbxproj
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_launcher_icons.