flutternetwork / WiFiFlutter

Flutter plugin suite for various WiFi services.
https://wifi.flutternetwork.dev
289 stars 182 forks source link

Error after upgrading to Flutter 3.24.0 and dart sdk 3.5.0 #397

Closed Bojan227 closed 2 months ago

Bojan227 commented 3 months ago

Hey @daadu If i run the app with flutter run --release I'm receiving the following error messages.

image image image image

Flutter doctor image

UnluckyY1 commented 3 months ago

Occurs after upgrade flutter to 3.24.

Roll flutter back to 3.22 may solve it.

With latest flutter 3.24, update the compileSdkVersion to 31 or higher like the commit here will fix this, too:

Additionally, change it's dependency and your app's dependency.

Also the built android libs should be saved in android/src/main/jniLibs.

Or use my fork:

wifi_scan:
   git:
      url: https://github.com/UnluckyY1/WiFiFlutter.git
      path: packages/wifi_scan
      ref: bbb8c4e
carlos00027 commented 3 months ago

i've the same problem. when I was upgrade flutter sdk to 3.2.4

Bojan227 commented 3 months ago

@UnluckyY1 Thanks for the info! 👍

dt-ebermudez commented 3 months ago

I have the same problem. when I was upgrade flutter sdk to 3.2.4... thx.

carlos00027 commented 3 months ago

@Bojan227 I've a question. can you execute flutter build appbundle and it's work ok ? and flutter build apk throw exception?

Bojan227 commented 3 months ago

@carlos00027 I've used flutter run --release and I've got the errors above. The app was working okay on my emulator if i run the app with flutter run --debug for example.

GHAMDANdev commented 3 months ago

you must "flutter run --release --verbose" for more details

JaredHorwitz commented 2 months ago

@daadu also seeing problems with wifi_iot after upgrade to Flutter 3.24 on mac and iOS

daadu commented 2 months ago

Thanks for reporting the issue and apologies for delay in responding.

There is a PR filled on https://github.com/flutternetwork/WiFiFlutter/pull/398 - will do the same for wifi_iot as well.

daadu commented 2 months ago

The fix has landed on pub.dev with:

@Bojan227 Thank you for reporting the bug, check yourself in the CONTRIBUTORS.md file.