Since flutter 2, flutter has enabled null security by default in the configuration. By incorporating null checking into the type system, these errors can be caught during development, so as to prevent crashes caused by the reproduction environment. If empty security is enabled in the current project and the imported third-party plug-in is not adapted, the operation returns the following error.
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:provider
For solutions, see https://dart.dev/go/unsound-null-safety
Restarted application in 341ms.
At this time, you can check whether the new version of the imported plug-in supports empty security. If the plug-in supports empty security, the plug-in platform will mark it as empty security:
if the imported plug-in does not support empty security, you can execute the following commands on the terminal to run the software
flutter run --no-sound-null-safety
Read More:
- Gradle:Using flatDir should be avoided because it doesn‘t support any meta-data formats.
- [error log] 27.1.0 series of errors Error:Failed to resolve: com.android.support :support-an notations:27.1.0
- Support annot run git xcrun: error: invalid active developer path
- Qaudiooutput play sound
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- org.apache.ibatis.type.TypeException: Error setting non null for parameter #4 with JdbcType null
- How to solve the problem of no sound after Apple Mac recovers from sleep?
- [building the flutter environment] error: the flutter directory is not a clone of the GitHub project
- Integrate native IOS plug-ins into the flutter project
- Flutter – iOS: Command /bin/sh failed with exit code 255
- Flutter development: prompt error parsing localfile when running the project: ‘/ users / xxx / Android / APP / SRC / main / androidmanifest. XML’… Solution
- Realization of breakpoint download based on DIO in flutter
- Does flutter report an error after upgrading 2.5?
- Node.js Medium package.json The difference between devdependences and dependencies
- Failed to execute goal on project XXXX-api: Could not resolve dependencies for pro
- Error:null value in entry: incrementalFolder=null
- Go run error go run: cannot run non main package
- [mybatis] error: malformed ognl expression: name! = null and name! = ‘”
- java.lang.UnsupportedOperationException: null
- VMware this host does not support 64 bit solutions