现在的位置: 首页 > 综合 > 正文

导入AIDL例子的时候,在asBinder出现错误

2013年02月01日 ⁄ 综合 ⁄ 共 462字 ⁄ 字号 评论关闭

转载自:http://hi.baidu.com/qidao/item/bcd6e8cfe8ed6211b67a24db

没事做个游戏代码,运行的时候出错

Exception in thread "Thread-2" java.lang.Error: Unresolved compilation problem:
 The method moveDown() of type board must override a superclass method

 at com.jxr.board.moveDown(board.java:80)
 at com.jxr.board.run(board.java:232)

在网上查了下解决办法:

The method of type must override a superclass method,提示的是实现类必须实现接口的方法。
原因:
实现类里面使用了 @Override
在1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface
解决方法:
将项目的jdk从1.5改为1.6

结果:
问题解决

抱歉!评论已关闭.