Flutter SDK error Solve.
While creating the project you may see the following error. Which leads to error and the code will not run. This problem can be solve. The step to solve this problem is given below.
Flutter Error: Because every version of flutter_test from sdk depends on collection 1.14.11 and every version of flutter from sdk depends on collection 1.14.12, flutter_test from sdk is incompatible with flutter from sdk.
So, because ppe depends on both flutter any from sdk and flutter_test any from sdk, version solving failed.
Running “flutter pub get” in ppe…
pub get failed (1; So, because ppe depends on both flutter any from sdk and flutter_test any from sdk, version solving
failed.)
- Add according to the following in the pubspec.yaml
- Re-open the folder of project and run again.