add android support library v4 to intellij ide
- by user1233587
i am trying to use viewpager from android support library v4 in intelli j
currently
i have android sdk 4.1
I copied android-support-v4.jar to my intellij android project under 'libs'
in the project settings of intellij
I webt to "Modules" = "MyModuleName" = dependencies tab, and add the android-support-v4.jar, by navigating the path to the libs/ folder under my own project
I checked the 'export' besides this newly added jar file
but i still can't use viewpager in my application
i get a crash msg like
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxx/com.xxxx.MyActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class android.support.v4.view.ViewPager