I try to use viewpagerindicator but somehow the Console error always show this:
E/AndroidRuntime(871): Caused by: java.lang.ClassNotFoundException: com.viewpagerindicator.TitlePageIndicator in loader dalvik.system.PathClassLoader
I have included the viewpagerindicator as library. Can anyone help pls?
Try this: Right click on the project. Select Properties. Go to Java Build Path and make sure your library is checked. Once you ensure that it is checked, clean the project and then run your project. This should resolve your issue.
I had lots of problems with viewpagerindicator until I switched my JDK over to the 32 bit version.
See https://stackoverflow.com/a/12831327/1116861 for more info.
Include it in the Gradle build files instead, there is 2 files :
build.gradle located in "app" folder and another located in the root project folder.
Update the "dependencies" section in the first one as follows :
And update the "allprojects" section in the second one as follows :
-