Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9164433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:40:56+00:00 2026-06-17T14:40:56+00:00

My existing project runs smoothly using Fragments and FragmentPagerAdapters. However, when adding the ActionBarSherlock

  • 0

My existing project runs smoothly using Fragments and FragmentPagerAdapters. However, when adding the ActionBarSherlock library errors appear. I have found [another question] with the same problems, but there are no answers.

Before adding the library to my project, it looks like this with no errors:

enter image description here

After adding the library, I edit the AndroidManifest.xml to include android:theme="@android:style/Theme.Sherlock", which produces an error in my XML file as well. When I change it to android:theme="@style/Theme.Sherlock", the error in the XML file disappears but it still doesn’t work and the errors look like this:

enter image description here

EDIT:

I have done what was suggested in CommonsWare’s answer below, but my code is still not working properly. All errors go away and the project builds and even launches on my device. However when I enter the Graphical layout of my XML files I get the following error:

The following classes could not be found:
- android.support.v4.view.PagerTabStrip (Fix Build Path, Edit XML, Create Class)

This is what the XML file looks like. Note that my XML file shows no errors, but when I enter the Graphical Layout tab the above message appears. I had not mentioned that I am using a ViewPager but I didn’t think it would make a difference.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:id="@+id/wavesMonitorMenuBar"
        style="@android:style/ButtonBar"
        android:layout_alignParentBottom="true"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

    <Button
        android:id="@+id/backButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/menu_back" />

    <Button
        android:id="@+id/readButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/menu_read" />
</LinearLayout>

<android.support.v4.view.ViewPager
    android:id="@+id/statusPager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentTop="true"
    android:layout_above="@id/wavesMonitorMenuBar" >
    <android.support.v4.view.PagerTabStrip
        android:id="@+id/pager_title_strip"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="top"
        android:background="#9E9E9E"
        android:textColor="#fff"
        android:paddingTop="4dp"
        android:paddingBottom="4dp" />


    </android.support.v4.view.ViewPager>


</RelativeLayout>

From here I went to chose Fix Build Path but still couldn’t solve the problem. I tried selecting both library.jar and android-support-v4.jar but to no avail. The program crashes when I try to open any views that use the XML files with these errors.

This is the window I get when I choose Fix Build Path:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:40:58+00:00Added an answer on June 17, 2026 at 2:40 pm

    As your console is telling you in red, you have two JARs, named android-support-v4.jar, and they are not the same actual file — their sizes or contents differ. Hence, Android does not know which of the two JARs you want.

    Usually, the simple answer is to delete the JAR from your project. ActionBarSherlock has this JAR, and your project will pick that one up as part of having ActionBarSherlock attached as a library project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing project that builds fine using my IDE. I'd like to
I have an existing project which is an application that runs several flows, calling
I have an existing project that I am adding the CoreData framework to but
I am adding themes to an existing Spring 3.0.5 project. I am using the
I have an existing project, so I need a solid way of cleaning/checking user
I have an existing project written in Ruby on Rails. It is sort of
I have an existing project that consumes web services. One was added as a
I have an existing project repo which I use for project A, and has
Using Rubber I vulcanized my existing project with resque and redis. I got it
We already have an existing MSI Installer (web deployment project - .vdproj) that we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.