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

Dependency Issue #39

Closed
olsorya2 opened this issue Jul 14, 2020 · 5 comments
Closed

Dependency Issue #39

olsorya2 opened this issue Jul 14, 2020 · 5 comments

Comments

@olsorya2
Copy link

I tried to install the latest version of excel and got this error:

Because every version of flutter_test from sdk depends on xml 3.6.1 and excel >=1.0.4 depends on xml ^4.1.0, flutter_test from sdk is incompatible with excel >=1.0.4.
So, because flutter_excel_test depends on both excel ^1.1.0 and flutter_test any from sdk, version solving failed.
pub get failed (1; So, because flutter_excel_test depends on both excel ^1.1.0 and flutter_test any from sdk, version solving failed.)

I'm using Flutter V 1.17.5. Any ideas on how to fix this?

@kuskhan
Copy link

kuskhan commented Jul 18, 2020

I'm not sure that this is a right way. But, temporarily it works for me.

Add these lines in pubspec.yaml file

dependency_overrides:
  xml: ^4.1.0
  petitparser: ^3.0.0

Then run $ flutter pub get.

Reference articles:

@justkawal
Copy link
Owner

justkawal commented Jul 18, 2020

Similar issues have been solved in the past,

You can see in the documentation section : https://github.com/kawal7415/excel#frequent-issues

or look at issue: #25

@justkawal
Copy link
Owner

I hope that the issue is resolve by the above stated solutions.

If there any other issue occurs, feel free to open or re-open the issue again

~~ Happy to help.

@azmasamy
Copy link

azmasamy commented Apr 9, 2021

I'm getting this error:
Because excel >=1.0.4 <2.0.0-null-safety depends on xml ^4.1.0 and apk_analysis depends on xml ^5.0.2, excel >=1.0.4 <2.0.0-null-safety is forbidden. So, because apk_analysis depends on excel ^1.1.5, version solving failed. pub get failed (1; So, because apk_analysis depends on excel ^1.1.5, version solving failed.)

@azmasamy
Copy link

azmasamy commented Apr 9, 2021

I tried the solution here: #25
It just gave me another error:
Because excel <2.0.0-null-safety depends on archive ^2.0.0 and apk_analysis depends on archive ^3.1.2, excel <2.0.0-null-safety is forbidden. So, because apk_analysis depends on excel ^1.1.5, version solving failed. pub get failed (1; So, because apk_analysis depends on excel ^1.1.5, version solving failed.)

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

No branches or pull requests

4 participants