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): [FATAL:client.cc(3938)] 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/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bbb113
F/bt_stack(20411): #01 0x00000070b50889fb /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x000000000043d9fb
F/bt_stack(20411): #02 0x00000070b5137307 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x00000000004ec307
F/bt_stack(20411): #03 0x00000070b580ec37 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc3c37
F/bt_stack(20411): #04 0x00000070b580df3f /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc2f3f
F/bt_stack(20411): #05 0x00000070b580e303 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc3303
F/bt_stack(20411): #06 0x00000070b581134f /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc634f
F/bt_stack(20411): #07 0x00000070b5838783 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bed783
F/bt_stack(20411): #08 0x00000070b52bd483 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000672483
F/bt_stack(20411): #09 0x00000070b52bce97 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000671e97
F/bt_stack(20411): #10 0x00000070b52bd9b7 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x00000000006729b7
F/bt_stack(20411): #11 0x00000073d242f3b3 /apex/com.android.runtime/lib64/bionic/libc.so+0x00000000000b63b3
F/bt_stack(20411): #12 0x00000073d23cc0bb /apex/com.android.runtime/lib64/bionic/libc.so+0x00000000000530bb
F/bt_stack(20411):

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.