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

Dependence on older args 2.0.0 makes other packages incompatible #262

Closed
Zelfapp opened this issue Jun 22, 2021 · 10 comments
Closed

Dependence on older args 2.0.0 makes other packages incompatible #262

Zelfapp opened this issue Jun 22, 2021 · 10 comments

Comments

@Zelfapp
Copy link

Zelfapp commented Jun 22, 2021

ℹ️ Info

Version: ^0.9.0

💬 Description

Because flutter_native_splash >=1.1.9 depends on args ^2.1.1 and flutter_launcher_icons 0.9.0 depends on args 2.0.0, flutter_native_splash >=1.1.9 is incompatible with flutter_launcher_icons 0.9.0.

Please update args to min ^2.1.1.

📜 Pubspec.yaml

dev_dependencies:
  flutter_test:
    sdk: flutter
  hive_generator: ^1.1.0
  build_runner: ^2.0.4
  flutter_launcher_icons: ^0.9.0
  flutter_native_splash: ^1.2.0
@chrystoffer
Copy link

I created a fork to use with native splash
https://github.com/chrystoffer/flutter_launcher_icons

@georgeci
Copy link

Also you can insert to your pubspec.yaml

dependency_overrides:
  args: ^2.1.1

It works for:

flutter_launcher_icons: ^0.9.0
flutter_native_splash: ^1.2.0

@MarkOSullivan94
Copy link
Collaborator

Seen this reported more than once so I've updated the README to include a section on this problem and a link to @georgeci's comment for how to get around it

Thanks @georgeci for posting that work around ❤️

@MarkOSullivan94
Copy link
Collaborator

@Zelfapp I've updated the dependency so it should hopefully be ok now 🤞

@David20082012
Copy link

David20082012 commented Apr 25, 2022

Good Morning,
I need your help
I got a message says " pub finished with exit code 255 "
while using the launcher icon code
Version: ( flutter_launcher_icons: "^0.9.2" )

appreciate your answer, thanks

@Alvish0407
Copy link

After flutter 2.8.0

Try specifying minSdkVersion in android>app>build.gradle.

Screenshot 2022-06-05 at 10 35 21 AM

What i found is flutter_launcher_icons tries to get minSdkVersion and parsing to Int But it didn't find and throws exception.

Screenshot 2022-06-05 at 10 30 57 AM

https://www.flutterbeads.com/change-android-minsdkversion-in-flutter/#For-the-Projects-Created-After-Flutter-2.8-Update

@princekwame1
Copy link

Please i need help with this. All suggested solution up there i have tried but still doesnt work for me

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 10s
Running Gradle task 'assembleDebug'... 11.2s
Exception: Gradle task assembleDebug failed with exit code 1

@FrancisIje
Copy link

^1.2.0

Also you can insert to your pubspec.yaml

dependency_overrides:
  args: ^2.1.1

It works for:

flutter_launcher_icons: ^0.9.0
flutter_native_splash: ^1.2.0

I can't use flutter SVG, flutter_launcher_icons and flutter_native_splash at the same time.

@Alvish0407
Copy link

Which dart, flutter, SVG, flutter_launcher_icons and flutter_native_splash version are you using ?

@FrancisIje
Copy link

Which dart, flutter, SVG, flutter_launcher_icons and flutter_native_splash version are you using ?

flutter_native_splash: ^1.2.0
flutter_launcher_icons: ^0.9.0
flutter_svg: ^1.1.6

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

8 participants