Because xml 6.3.0 depends on meta ^1.9.0 and no versions of xml match >6.3.0 <7.0.0, xml ^6.3.0 requires meta ^1.9.0.
And because every version of flutter from sdk depends on meta 1.8.0, flutter from sdk is incompatible with xml ^6.3.0.
And because vector_graphics_compiler 1.1.7 depends on xml ^6.3.0 and no versions of vector_graphics_compiler match >1.1.7 <2.0.0, flutter from sdk is incompatible with vector_graphics_compiler ^1.1.7.
And because flutter_svg 2.0.7 depends on vector_graphics_compiler ^1.1.7 and no versions of flutter_svg match >2.0.7 <3.0.0, flutter from sdk is incompatible with flutter_svg ^2.0.7.
So, because instagram_clone_flutter depends on both flutter from sdk and flutter_svg ^2.0.7, version solving failed.
pub get failed
command: "C:\src\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --directory . get --example"
pub env: {
"FLUTTER_ROOT": "C:\src\flutter",
"PUB_ENVIRONMENT": "flutter_cli:verify:run",
"PUB_CACHE": "C:\Users\mansi\AppData\Local\Pub\Cache",
}
exit code: 1
Hey @vishy0001 ! It might happen due to the outlined dependencies in your cloned project. Try to clean it up by running flutter clean, then flutter pub get in your terminal.
Because xml 6.3.0 depends on meta ^1.9.0 and no versions of xml match >6.3.0 <7.0.0, xml ^6.3.0 requires meta ^1.9.0. And because every version of flutter from sdk depends on meta 1.8.0, flutter from sdk is incompatible with xml ^6.3.0. And because vector_graphics_compiler 1.1.7 depends on xml ^6.3.0 and no versions of vector_graphics_compiler match >1.1.7 <2.0.0, flutter from sdk is incompatible with vector_graphics_compiler ^1.1.7. And because flutter_svg 2.0.7 depends on vector_graphics_compiler ^1.1.7 and no versions of flutter_svg match >2.0.7 <3.0.0, flutter from sdk is incompatible with flutter_svg ^2.0.7. So, because instagram_clone_flutter depends on both flutter from sdk and flutter_svg ^2.0.7, version solving failed. pub get failed command: "C:\src\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --directory . get --example" pub env: { "FLUTTER_ROOT": "C:\src\flutter", "PUB_ENVIRONMENT": "flutter_cli:verify:run", "PUB_CACHE": "C:\Users\mansi\AppData\Local\Pub\Cache", } exit code: 1
This error is coming when trying to run this