简体   繁体   中英

Viewpager + Actionbarsherlock not compiling the android-support library

I am trying to use the viewPager + Actionbarsherlock at the same time in my project. But everytime I build I get 74 errors. All complaining about things like

    import android.support.v4.app.Fragment;
    import android.support.v4.app.FragmentManager;
    import android.support.v4.app.FragmentPagerAdapter;

   //Other class 
    import android.support.v4.view.ViewPager;

after some searching I found out that the problem is with the android-support library . I am using android studio . Can anybody tell me how I should build up my project structure in android studio ?

Thanks!

My bet is that ActionBarSherlock is using an older version (it's five months old) of the android-support-library. Replace the android-support-v4.jar i ActionBarSherlock/libs with the one you use in your main project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM