Theo Jouret
Theo Jouret

Reputation: 113

com.viewpagerindicator android.view.view

I'm trying to use JakeWharton-Android-ViewPagerIndicator in a project. http://viewpagerindicator.com/

I unzipped JakeWharton-Android-ViewPagerIndicator and started a new project in this folder. In the file UnderlinePageIndicator.java I have an error on:

import android.view.View;
...
public class UnderlinePageIndicator extends View implements PageIndicator { ... }

Error: View can not be resolved to a type. I also have an error on line 1 (which is a comment), saying: The type android.view.ViewGroup cannot be resolved. It is indirectly referenced from required .class files

Error Log:

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

I spent hours on this, im out of solutions. Any help would be welcome. Thanks.

Upvotes: 1

Views: 1056

Answers (1)

Rana Pratap Singh
Rana Pratap Singh

Reputation: 867

  1. import JakeWharton-Android-ViewPagerIndicator into ur workspace and then right click on your project->properties->android->library(scroll_down)->Add button dialog will open,then select JakeWharton-Android-ViewPagerIndicator and click apply/ok.

  2. And then follow this link "Adapter for circle page indicator in android". I have used CirclePageIndicator with viewpager.It will absolutely help u :)

Upvotes: 5

Related Questions