Download a file from git, open it, run fluent pub get, and an error occurs:
pubspec.yaml has no lower bound SDK constraint.
you should edit pubspec.yaml to contain an SDK constraint:
environment:
SDK: ‘>= 2.10.0 < 3.0.0 ‘
add to pubspec.yaml:
environment: SDK:’ >= 2.10.0 < 3.0.0 ‘
after rerunning fluent pub get, an error is still reported, indicating that the SDK constraint is not added. Later, it is found that the subfolder example of the home folder also contains a pubspec.yaml file, in which the SDK constraint is not added
after adding constraints, run fluent pub get.
Read More:
- Flutter upgrade upgrade SDK SSL_ERROR_Syscall error [How to Solve]
- flutter, Unable to buy item, Error response code: 7 & flutter_inapp_purchase
- [Solved] Goland sdk Error: The selected directory is not a valid home for Go SDK
- [Solved] Flutter package flutter build apk Error: permission-handle
- Flutter flutter doctor –android-licenses [How to Solve]
- Flutter Error: dump failed because resource AndroidManifest.xml not found [How to Solve]
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Manifest merger failed with multiple errors, see logs
- [Solved] Excel solver: Error Log 3_Decimal result after non negative constraint
- [Solved] flutter Project Error: ScrollController attached to multiple scroll views, Failed assertion: line 109 pos 12
- Manifest merger failed with multiple errors, see logs [How to Solve]
- Java.sql.SQLException: ORA-02291: integrity constraint violated – par
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- [Solved] Android Gradle Build Error: Some file crunching failed, see logs for details
- [Solved] Android Studio Manifest merger failed with multiple errors, see logs
- [Solved] Manifest merger failed with multiple errors, see logs
- [Solved] Fabric_sdk_go:QueryBlockConfig failed: QueryBlockConfig failed: target(s) required
- [Solved] Hikvision SDK: NET_DVR_GetDVRConfig failed Device does not support this function
- [Solved] Failed to install the following Android SDK packages as some licences have not been accepted
- [Solved] Manifest merger failed with multiple errors, see logs