Assert failed: Init LE Audio Client must have Bluetooth Audio HAL V2.1+

I recently got a new Macbook Pro and am trying to set up Android Studio. After installing Java 8, Dart, Flutter, and Android Studio, I ran the base code for a new project and received the following error in the terminal:

F/bt_stack(20411): [] Assert failed: std::move(hal_2_1_verifier).Run(). Initialize, LE Audio Client requires Bluetooth Audio HAL V2.1 at least. Either disable LE Audio Profile, or update your HAL
F/bt_stack(20411): #00 0x00000070b5806113 /apex/
F/bt_stack(20411): #01 0x00000070b50889fb /apex/
F/bt_stack(20411): #02 0x00000070b5137307 /apex/
F/bt_stack(20411): #03 0x00000070b580ec37 /apex/
F/bt_stack(20411): #04 0x00000070b580df3f /apex/
F/bt_stack(20411): #05 0x00000070b580e303 /apex/
F/bt_stack(20411): #06 0x00000070b581134f /apex/
F/bt_stack(20411): #07 0x00000070b5838783 /apex/
F/bt_stack(20411): #08 0x00000070b52bd483 /apex/
F/bt_stack(20411): #09 0x00000070b52bce97 /apex/
F/bt_stack(20411): #10 0x00000070b52bd9b7 /apex/
F/bt_stack(20411): #11 0x00000073d242f3b3 /apex/
F/bt_stack(20411): #12 0x00000073d23cc0bb /apex/

I’m not receiving any actual errors in my Android Emulator, but I would like to know how to fix this so that the terminal does not display the error.

The error you are experiencing is related to the Bluetooth Stack in Android. It indicates that the Bluetooth Audio HAL version needs to be updated to at least V2.1 for the LE Audio Client to work properly.

To fix this error and prevent it from displaying in the terminal, you have two options:

  1. Disable LE Audio Profile: If you do not require the LE Audio Profile functionality, you can disable it. To do this, follow these steps:

    • Open the Android Emulator.
    • Go to Settings.
    • Navigate to Connected Devices or Bluetooth settings.
    • Disable the LE Audio Profile option.
  2. Update Bluetooth Audio HAL: If you need the LE Audio Profile functionality, you will need to update the Bluetooth Audio HAL to at least V2.1. To update the Bluetooth Audio HAL, follow these steps:

    • Check for updates for your Android Emulator or device’s firmware. Sometimes, updates include fixes for Bluetooth-related issues.
    • If an update is not available, you may need to contact the manufacturer or check their website for any firmware updates specifically addressing Bluetooth Audio HAL.

By following one of these options, you should be able to fix the error and prevent it from displaying in the terminal.