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

Got ANALYSIS ISSUE on pub.dev due to Flutter/Dart version constraints #77

Closed
espresso3389 opened this issue Feb 16, 2024 · 5 comments
Closed

Comments

@espresso3389
Copy link
Owner

image

Actual error shown in "Pass static analysis" section:

The current Dart SDK version is 3.3.0-279.3.beta.
Because pdfrx requires SDK version >=3.3.0 <4.0.0, version solving failed.

If I fix the Dart SDK version to 3.3.0-279.3.beta, the next is Flutter SDK version to 3.19.0-0.4.pre. And if fix both, it results in another error :(

@espresso3389
Copy link
Owner Author

dart-lang/pub-dev#7484

@espresso3389
Copy link
Owner Author

@espresso3389
Copy link
Owner Author

version: 1.0.5+test1
homepage: https://github.com/espresso3389/pdfrx

environment:
  sdk: '>=3.3.0-76.0.dev <4.0.0'
  flutter: '>=3.19.0-0.4.pre'

results in

The current Dart SDK version is 3.3.0-279.3.beta.
Because http >=1.2.1 requires SDK version ^3.3.0 and http >=1.1.2 <1.2.1 depends on web >=0.3.0 <0.5.0, http >=1.1.2 requires web >=0.3.0 <0.5.0.

@espresso3389
Copy link
Owner Author

espresso3389 commented Feb 16, 2024

08efe46 downgrades web package to 0.4.2 as a temporary workaround.

@espresso3389
Copy link
Owner Author

pub.dev now works correctly!

dart-lang/pub-dev#7484 (comment)

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

1 participant