My project needs the following classes to build:
BluetoothA2dpSink
BluetoothAvrcpController
According to this & this, the classes are part of the Android SDK but are disabled by default because these bluetooth profiles are not used on most phones. We have a custom ROM for our device so these bluetooth profiles will work just fine with our device.
The answers in the questions above say that you can modify the SDK to include the missing classes so Android Studio will recognize them and build. So my questions are:
- How can I add these classes to the SDK even though they are already there? (C:\Users\USERNAME\AppData\Local\Android\sdk\sources\android-23\android\bluetooth) is their location.
- How do I actually modify the SDK and recompile it? I found this question but it is from several years ago and points to instructions that are several years old as well.