Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: true ? #38

Closed
Solido opened this issue Jul 17, 2018 · 4 comments
Closed

android: true ? #38

Solido opened this issue Jul 17, 2018 · 4 comments

Comments

@Solido
Copy link
Member

Solido commented Jul 17, 2018

flutter_launcher_icons: "^0.5.2"
flutter_icons:
android: true
ios: "Select-Icon"
image_path: "assets/Select.png"
#image_path_android: "assets/icon/icon_android.png"
#image_path_ios: "assets/icon/icon_ios.png"
adaptive_icon_background: "#FFFAFAFA"
#adaptive_icon_foreground: "assets/icon/icon-foreground.png"

flutter pub pub run flutter_launcher_icons:main
Error on line 54, column 5 of pubspec.yaml: A dependency may only have one source.
android: true
^^^^^^^^^^^^^^
pub finished with exit code 65

@ffeu
Copy link

ffeu commented Jul 29, 2018

just checking.. did you place flutter_launcher_icons inside dev_dependencies and respected the indentation?

dev_dependencies:
  flutter_launcher_icons: "^0.5.2"
  flutter_test:
    sdk: flutter

# ... the other lines in your file ...

flutter_icons:
  android: true 
  ios: true
  image_path: "assets/icon/icon.png"

@Solido
Copy link
Member Author

Solido commented Jul 30, 2018

Tried both indentation each giving a different error

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) { ...

@ffeu
Copy link

ffeu commented Jul 30, 2018

This last error means you fixed the problem you had! 😀 It was the yaml, you can close the issue.

This error you are currently getting is apparently a problem with the tool and flutter.

See the issue #39.

@Solido
Copy link
Member Author

Solido commented Jul 30, 2018

I traded one for another ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants