简体   繁体   English

Viewpager + Actionbarsherlock无法编译android-support库

[英]Viewpager + Actionbarsherlock not compiling the android-support library

I am trying to use the viewPager + Actionbarsherlock at the same time in my project. 我正在尝试在我的项目中同时使用viewPager + Actionbarsherlock But everytime I build I get 74 errors. 但是,每次构建时都会出现74个错误。 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 . 经过一番搜索后,我发现问题出在android-support library I am using android studio . 我正在使用android studio Can anybody tell me how I should build up my project structure in android studio ? 有人可以告诉我如何在android studio中建立project structure吗?

Thanks! 谢谢!

My bet is that ActionBarSherlock is using an older version (it's five months old) of the android-support-library. 我敢打赌, ActionBarSherlock使用的是android-support-library 的较旧版本已有 5个月的历史了)。 Replace the android-support-v4.jar i ActionBarSherlock/libs with the one you use in your main project. 将ActionBarSherlock / libs中的android-support-v4.jar替换为您在主项目中使用的一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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