after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before
i have tried some ways
- Flutter clean then pub get again
- delete pubspec.lock
- clean the .pub-cache
- upgrade gradle to 7.4
- upgrade ext.kotlin_version to '1.6.10'
- change android -> build.gradle -> buildscript & allprojects jcenter() to mavenCentral()
- upgrade Android Gradle Build version to the latest "classpath 'com.android.tools.build:gradle:7.1.3'"
Had to delete pubspec.lock run
flutter clean
run
flutter pub get
extra step, might help you:
flutter pub upgrade
Upgraded dart version to 2.17 in pubspec also.
Fixed on the warning in cached network image, by removing the
?
checks in the warning. The package will be updated by the maintainers, there already is 5 pull requests for the fix, can check here.for iOS, had to delete podfile.lock also and run
pod install --repo-update
Fixed things and compiled without warnings for iOS and Android.