0

I changed SDK Version to 31 and cause the following error. I tried to update the ServiceManager.java according to this link BluetoothAdapter deprecated but it does not work.

How can I solve this error? Please help

enter image description here

Triple K
  • 379
  • 1
  • 3
  • 14

1 Answers1

0

These steps solve the problem

  1. Delete pubspec.lock
  2. Run flutter pub cache repair
  3. Run flutter pub get
Triple K
  • 379
  • 1
  • 3
  • 14