flutter_bluetooth_serial icon indicating copy to clipboard operation
flutter_bluetooth_serial copied to clipboard

error: cannot find symbol if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.S

Open akhilgorantala opened this issue 2 years ago • 2 comments

C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:452: error: cannot find symbol if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.S) { ^ symbol: variable S location: class VERSION_CODES C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:472: error: cannot find symbol Manifest.permission.BLUETOOTH_SCAN) ^ symbol: variable BLUETOOTH_SCAN location: class permission C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:475: error: cannot find symbol Manifest.permission.BLUETOOTH_CONNECT) ^ symbol: variable BLUETOOTH_CONNECT location: class permission C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:478: error: cannot find symbol new String[]{Manifest.permission.BLUETOOTH_SCAN, Manifest.permission.BLUETOOTH_CONNECT}, ^ symbol: variable BLUETOOTH_SCAN location: class permission C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java:478: error: cannot find symbol new String[]{Manifest.permission.BLUETOOTH_SCAN, Manifest.permission.BLUETOOTH_CONNECT}, ^ symbol: variable BLUETOOTH_CONNECT location: class permission Note: C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_serial-0.4.0\android\src\main\java\io\github\edufolly\flutterbluetoothserial\FlutterBluetoothSerialPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 errors

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':flutter_bluetooth_serial:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s Exception: Gradle task assembleDebug failed with exit code 1

akhilgorantala avatar Jan 03 '23 05:01 akhilgorantala

Flutter Version: 3.3.10 Dart SDK version: 2.18.6

akhilgorantala avatar Jan 03 '23 05:01 akhilgorantala

hey bro? im not able to connect two phone with same app. but i am able to connet with bluetooth serial monitor with this app and and can chat. whats the issue? pls help

dev9828 avatar Jan 03 '23 06:01 dev9828