导入原有程序出现下面的errors提示:

Description Resource Path Location Type

The method onClick(View) of type new View.OnClickListener(){} must override a superclass method DeliverActivity.java /HelloAndroid/src/com/winse/communicate line 20 Java Problem


解决方法: http://stackoverflow.com/questions/4761888/override-annotation-error-android-prefs
It's an implementation thing. In Java 5 vs Java 6 they changed whether you could use "Override" with an interface (since Override seems to imply that you are overriding some sort of default behavior, which you are not doing with an interface!). If you so desire, you can search in the Eclipse preferences and change it from a compilation error to a compilation warning. You code inside of the CheckBox() function looks fine to me.
通过设置eclipse的冲突可以解决这个问题。 Prefereces-->Java-->Compiler在右边的Compiler compliance level设置为1.6即可。
@Override annotation error(Eclipse导入原有的Android Projects)_第1张图片

更多相关文章

  1. Android 登陆、提交数据或者加载数据时提示页面
  2. 引入第三方库ic_launcher冲突
  3. 转 Android SDK更新后提示This version of ADT requires the...y
  4. Android开发之自动提示框—AutoCompleteTextView
  5. Android 出错提示:Emulator without GPU emulation detected 的解
  6. Android Studio Termanal打不开,提示java.io.IOEXception:couldn'
  7. TextInputEditText 替换EditText解决警告Missing autofillHints

随机推荐

  1. 短视频app开源源码android 给图片加文字
  2. 在PC上体验Android
  3. OpenERP Android(安卓)DEMO工程发布下载
  4. 【Android View】Android中View对触摸事
  5. 模拟器无法启动,卡在android字样的界面上
  6. Android(安卓)应用程序签名、发布
  7. linux下配置android sdk
  8. android开发环境之ADT安装,卸载,更新
  9. android中集成jpush与百度地图定位锁得知
  10. android 文件上传