我试图在一个项目中使用。http://viewpagerindicator.com/
我解压缩了,并在这个文件夹中启动了一个新项目。在文件UnderlinePageIndicator.java中,我在以下方面有一个错误:
import android.view.View;
...
public class UnderlinePageIndicator extends View implements PageIndicator { ... }错误:无法将视图解析为类型。我在第1行也有一个错误(这是一个注释),它说: android.view.ViewGroup类型不能被解析。它是从必需的.class文件间接引用的。
错误日志:
Description Resource Path Location Type
The project was not built since its build path is incomplete. Cannot find the class file for android.view.ViewGroup. Fix the build path then try building this project JakeWharton-Android-ViewPagerIndicator-8cd549f Unknown Java Problem
Description Resource Path Location Type
The type android.view.ViewGroup cannot be resolved. It is indirectly referenced from required .class files UnderlinePageIndicator.java /JakeWharton-Android-ViewPagerIndicator-8cd549f/library/src/com/viewpagerindicator line 1 Java Problem我花了好几个小时在这上面,我没有解决办法。任何帮助都是欢迎的。谢谢。
发布于 2014-10-02 08:35:59
JakeWharton-Android-ViewPagerIndicator导入ur工作区,然后在project->properties->android->library(scroll_down)->Add button对话框中右键单击将打开,然后选择JakeWharton-Android-ViewPagerIndicator并单击apply/ok。https://stackoverflow.com/questions/26156571
复制相似问题