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

getDefaultAdapter() in BluetoothAdapter has been deprecated #176

Open
waleedkalyar opened this issue Aug 29, 2022 · 1 comment
Open

getDefaultAdapter() in BluetoothAdapter has been deprecated #176

waleedkalyar opened this issue Aug 29, 2022 · 1 comment

Comments

@waleedkalyar
Copy link

Hi sir, I have tried lib this lib with my latest code and android debug version 31. It gives the the depeacted Bluetooth adapter error. Please update the permission handler you are using inside your lib. Because right now it gives me the error

ermission_handler-6.1.3/android/src/main/java/com/baseflow/permissionhandler/ServiceManager.java:152: warning: [deprecation] getDefaultAdapter() in BluetoothAdapter has been deprecated
final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
^
error: warnings found and -Werror specified

I think if you update the permission handler to 8.0.0 or above can solve this issue.

@Alloco225
Copy link

same problem here

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