Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akhilgorantala opened this issue Jan 3, 2023 · 2 comments

Comments

@akhilgorantala
Copy link

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.

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

@akhilgorantala
Copy link
Author

Flutter Version: 3.3.10
Dart SDK version: 2.18.6

@dev9828
Copy link

dev9828 commented Jan 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants