编译时出现stripped of unavailable superclass
来源:互联网 发布:java调用 webservice 编辑:程序博客网 时间:2024/06/05 04:15
frameworks/base/core/java/android/app/AudioFocuseManager.java:6:
error 111: Public class android.app.AudioFocuseManager stripped of unavailable superclass android.app.IAudioFocuseManager.Stub
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{ }}
0 0
- 编译时出现stripped of unavailable superclass
- 管理器点击浏览时出现Service Unavailable
- 轻松解决 MyEclipse、Eclipse 编译时提示 @Override The method of type must override a superclass method 即 @Overr
- android工程出现"The method * of type * must override a superclass method"的解决方法
- 关于su时出现“-bash:fork:Resource temporarily unavailable”
- 编译时出现如下警告“implicit declaration of function Set_Disp_Port_SpeedMode"
- 文件编译时出现multiple definition of `xxxxxx'的解决办法
- 编译时出现multiple definition of `xxxxxx'的解决办法
- Qt编译时出现”out of memory allocating“解决方法
- 使用CodeWarrior编译时出现Warning:Possible loss of data
- Unable to resolve superclass of ***
- stripped 和 not stripped
- Stripped¬ stripped
- 编译webkit出现 LNK1102:out of memory
- 运行时提示,Unable to resolve superclass of L问题的解决
- MyEclipse6.5 @Override 时出错误 The method of type must override a superclass method
- override方法时,eclipse提示The method *** of type CourseServiceImpl must override a superclass method
- SuperClass
- [转]Android应用崩溃后异常捕获并重启
- Apache设置禁止使用IP访问网站的方法
- 简约留言板js代码
- 4.0 及以后版本 Boot_COMPLETED广播不响应的问题
- linux内核切换
- 编译时出现stripped of unavailable superclass
- 数据库连接池的简单实现
- Android Studio 项目模板修改
- 基于netty实现的socks5代理协议
- Android 蓝牙状态获取
- 密码强度等级
- Android Wifi和蓝牙操作(一)
- Android Wifi和蓝牙操作(二)
- AlertDialog 背景透明