I get these errors when I try to compile my cyanogenmod rom (12.1)
frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:190: error: cannot access RemoteControlClient
return mController != null ? mController.getRemoteControlClient() : null;
^
class file for android.media.RemoteControlClient not found
frameworks/support/v4/java/android/support/v4/media/TransportMediator.java:240: error: cannot access OnPlaybackPositionUpdateListener
mController.refreshState(mCallbacks.onIsPlaying(),
^
class file for android.media.RemoteControlClient$OnPlaybackPositionUpdateListener not found
Note: frameworks/support/v4/java/android/support/v4/view/accessibility/AccessibilityEventCompat.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Do you know what can I do to fix it? It's related to Support Libraries as v4 library searches for current RemoteControlClient class that I've found in the SDK in media/ folder.
It's the original android source code so I really don't understand why I get this error.
Re-downloading the source fixed the issue.