Closed RomjanHossain closed 3 years ago
The latest version is v1.10.6, upgrade your package version from pubspec.yaml
i update youtube_explode_dart
*1.9.10 -to- 1.10.6 in pubspec.yaml
file.
then,
dart pub get
and got version solving failed~
Resolving dependencies... (1.5s)
Because every version of flutter from sdk depends on meta 1.3.0 and json_annotation >=4.1.0 depends on meta ^1.4.0, flutter from sdk is incompatible with json_annotation >=4.1.0.
And because youtube_explode_dart >=1.10.0 depends on freezed_annotation ^0.14.3 which depends on json_annotation ^4.1.0, flutter from sdk is incompatible with youtube_explode_dart >=1.10.0.
So, because ytdownload depends on both flutter any from sdk and youtube_explode_dart ^1.10.6, version solving failed.
my Dart SDK version: 2.13.4 and flutter is 2.2.3 stable. i think youtube_explode_dart: ^1.10.6
is not compatible with my SDK versions. and i don't wanna build my app in master
or beta
branch~
Seems this is an issue with freezed
( https://github.com/rrousselGit/freezed/issues/485 )
To fix the issue until a new flutter
version is release you can temporarily add this to your pubspec.yaml
dependency_overrides:
freezed_annotation: 0.14.2
_Originally posted by @Hexer10 in https://github.com/Hexer10/youtube_explode_dart/issues/148#issuecomment-888589014_
after adding
youtube_explode_dart: ^1.10.6
freezed_annotation: 0.14.3
i got this error
Resolving dependencies... (1.0s)
Because every version of flutter_test from sdk depends on meta 1.3.0 and json_annotation >=4.1.0 depends on meta ^1.4.0, flutter_test from sdk is incompatible with json_annotation >=4.1.0.
So, because ytdownload depends on both json_annotation ^4.1.0 and flutter_test any from sdk, version solving failed.
then i add this dependencies on pubspec.yaml
file
meta: ^1.4.0
and got this error
Because every version of flutter_test from sdk depends on meta 1.3.0 and ytdownload
depends on meta ^1.4.0, flutter_test from sdk is forbidden.
So, because ytdownload depends on flutter_test any from sdk, version solving failed.
i tried to change json_annotation
versions too but it doesn't help.
Use json_annotation v4.0.1 and remove flutter_test if you don't use test in your app.
Check the pinned issue: https://github.com/Hexer10/youtube_explode_dart/issues/148#issuecomment-888589014
Most likely you just need to add freezed_annotation: 0.14.2
to the dependecies_overrides
, not dependencies
.
If you are unable to make progress please share your pubspec.yaml
.
Thanks @Hexer10 ! i just overrided meta
and freezed_annotation
and it solved the issue!
dependency_overrides:
freezed_annotation: 0.14.3
meta: ^1.4.0
if i add those above lines i get this error below!
Enviroment: