使用杰克沃顿商学院的ViewPageIndicator [英] Using Jake Wharton's ViewPageIndicator
问题描述
我试图用ViewPageIndicator库在我的课,但我遇到了困难。我下载了库从SVN,创建使用库code一个新的Android项目,它充满了错误。我确信,对v4和V13的支持库在那里,它通过相当多的减少了错误,但仍然有数百Eclipse的标记错误。他们大多是因 @覆盖
这使我相信我缺少一个支持库。 GitHub的页面上的安装说明的含糊可以,只是提到将其添加为一个库到您的项目,仅此而已。那么,有没有说我缺少的东西在这里?
I'm trying to use the ViewPageIndicator library in my class, but am running into difficulties. I downloaded the library from Git, created a new Android project using the library code, and it is filled with errors. I made sure that the support libraries for v4 and v13 are there, which cut down on the errors by quite a bit, but there are still hundreds of errors flagged by Eclipse. Most of them are due to @Override
which leads me to believe I'm missing a support library. The installation instructions on the GitHub page are as vague as can be and just mentions adding it as a library to your project, nothing more. So is there something that I'm missing here?
推荐答案
@Overide
错误可以简单地通过执行以下操作来解决:
@Overide
errors can be solved simply by doing the following:
-
右键点击项目>属性
Right click Project > Properties
Java编译>点击启用项目特定设置,并设置编译器级1.6
Java Compilers > click 'Enable project specific settings' and set Compiler level to 1.6
点击应用
这篇关于使用杰克沃顿商学院的ViewPageIndicator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!