我想在项目中使用JakeWharton-Android-ViewPagerIndicator。 http://viewpagerindicator.com/com.viewpagerindicator android.view.view
我解压缩JakeWharton-Android-ViewPagerIndicator并在此文件夹中启动了一个新项目。 在文件UnderlinePageIndicator.java我有一个错误:
import android.view.View;
...
public class UnderlinePageIndicator extends View implements PageIndicator { ... }
错误:查看解决不了的类型。 我也有错误第1行(这是一条评论),说: 类型android.view.ViewGroup无法解析。
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
我花了这个时间,即时出的解决方案:它是间接需要的.class文件
错误日志引用。任何帮助将受到欢迎。 谢谢。
发布您的错误日志。 – AndyN 2014-10-02 08:05:16
和你的错误日志,请添加更多的代码...没有一个错误的两行是有点太多,我们可以帮助你 – mithrop 2014-10-02 08:12:04
我不知道我可以添加什么代码...其余的是精细。这只是我无法从android.view中访问View类,而它却被正确导入。我想它是一个项目设置的问题,因为这个项目应该是你在自己的代码中使用的一种库;它没有主应用程序,你不能自行编译它。 – 2014-10-02 08:23:39