Search code examples
androidcompatibilityandroid-support-library

Android support-v4 is missing a method


I am seeking to use ViewPager 's getCurrentItem() method

I've encountered this issue before but I am not sure how to fix it. The issue was that one version of android-support-v4 revision did not have this method, and that a more updated revision had it.

On this machine though, I pulled Android Support straight through the Android SDK Manager, and this version of the android-support-v4 (rev. 7) does not have getCurrentItem() method. My project now will not compile on this machine

How can I get previous revisions of android-support-v4.jar.


Solution

  • According to the Android SDK Manager, I have the latest Android Support package, and the android-support-v4.jar contains getCurrentItem() on its ViewPager implementation, as I am using it.

    The JAR I have is 271,754 bytes, dated 2012-03-21 19:02, with an md5sum of c6c2148762c614d3bad120ca01491e34.