add android support library v4 to intellij ide

Posted by user1233587 on Stack Overflow See other posts from Stack Overflow or by user1233587
Published on 2012-10-18T04:56:57Z Indexed on 2012/10/18 5:01 UTC
Read the original article Hit count: 167

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

© Stack Overflow or respective owner

Related posts about android

Related posts about intellij-idea