I am trying to create an FM radio application and I have cloned this Google Respository for reference.
However, there are several classes in the import that are missing from android sdk. I tried changing compileSdkVersion from 18 to 24, but android .jar seems to be missing these Import:
import android.media.AudioManager.OnAudioFocusChangeListener;
import android.media.AudioManager.OnAudioPortUpdateListener;
import android.media.AudioMixPort;
import android.media.AudioPatch;
import android.media.AudioPort;
import android.media.AudioPortConfig;
import android.media.AudioDevicePort;
import android.media.AudioDevicePortConfig;
Where exactly are these classes and how to import them?
The Strange thing about them is they are present as .java files in sources/android-xx but not in actual .jar file.
The sample shows errors and I cannot continue. Please help me solve this problem.
source
share