frameworks/base/core/java/android/app/AudioFocuseManager.java:6:
error 111: Public class android.app.AudioFocuseManager stripped of unavailable superclass android.app.IAudioFocuseManager.Stub
如此类错误,请检查是否使用了@hide导致, 以下两段aidl中的代码
package android.app; interface IAudioFocuseManager { void shouldAudioFocused(String pkg); } ------------------------------------------------- package android.app; /** {@hide} */ interface IAudioFocuseManager { void shouldAudioFocused(String pkg); }
/** {@hide} */ 这个注释本以为是没用的, 后面才发现对应java的代码应该为:
package android.app; import android.os.RemoteException; import android.app.IAudioFocuseManager.Stub; public class AudioFocuseManager extends IAudioFocuseManager.Stub{ @Override public void shouldAudioFocused(String pkg) throws RemoteException{ } } ----------------------------------------------- package android.app; import android.os.RemoteException; import android.app.IAudioFocuseManager.Stub; /** * @hide */ public class AudioFocuseManager extends IAudioFocuseManager.Stub{ @Override public void shouldAudioFocused(String pkg) throws RemoteException{ } }