I found some problems when implementing Jake Wharton's ViewPagerIndicator. These are what stated on Logcat:
06-19 15:32:02.661: E/AndroidRuntime(692): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aprian.learn/com.aprian.learn.VPIndicator}: android.view.InflateException: Binary XML file line #7: Error inflating class com.viewpagerindicator.TitlePageIndicator
I have put on the viewpagerindicator library and already put it in build path, but still failed to start the app.
You need to add the ViewPagerIndicator as a Libarary project as per Referencing Library Projects. Using it as a .jar-file doesn't work.
Basic steps are: Add the ViewPagerIndicator as a New Project from existing source and
To add a reference to a library project, follow these steps:
- In the Package Explorer, right-click the dependent project and select Properties.
- In the Properties window, select the "Android" properties group at left and locate the Library properties at right.
- Click Add to open the Project Selection dialog.
- From the list of available library projects, select a project and click OK.
- When the dialog closes, click Apply in the Properties window.
- Click OK to close the Properties window.
If this doesn't work, try Project -> Clean.
Edit: Also see this answer from Jake Wharton : Answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With