rooxane.mac
rooxane.mac

Reputation: 131

Flutter 3.0.0 bugs

after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before

  1. qr_code_scanner:compileRelaseKotlin enter image description here

  2. Duplicate GlobalKey detected in widget tree enter image description here

  3. Warning: Operand of null-aware operation '??' has type 'String' which excludes null. enter image description here

i have tried some ways

  1. Flutter clean then pub get again
  2. delete pubspec.lock
  3. clean the .pub-cache
  4. upgrade gradle to 7.4
  5. upgrade ext.kotlin_version to '1.6.10'
  6. change android -> build.gradle -> buildscript & allprojects jcenter() to mavenCentral()
  7. upgrade Android Gradle Build version to the latest "classpath 'com.android.tools.build:gradle:7.1.3'"

for information flutter doctor enter image description here

Upvotes: 1

Views: 588

Answers (1)

Huthaifa Muayyad
Huthaifa Muayyad

Reputation: 12353

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.

Upvotes: 0

Related Questions