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 8319513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:20:58+00:00 2026-06-08T22:20:58+00:00

I have a project that is using both ActionBarSherloc k and ViewPagerIndicator . I

  • 0

I have a project that is using both ActionBarSherlock and ViewPagerIndicator. I had some issues including both as a library, so what I ended up doing was making ViewPagerIndicator include ActionBarSherlock as a library and remove the support v4 jar from ViewPagerIndicator (see this post: Using ActionBarSherlock & ViewPagerIndicator Syncronously Will Not Compile).

Everything builds and my app runs, but when I inflate a view with a TabIndicator, a resource not found exception is thrown. I’ve traced it down to the vpi__tab_indicator.xml file and the 6 drawables it’s referencing. When I comment out those drawables, the view inflates fine. I can see these drawables in both the ViewPagerIndicator project, as well as in its R file in my application. Is there something that I’m missing? The activity in question has the following style: android:theme="@style/Theme.PageIndicatorDefaults"

Edit:
stack trace (if it helps any)

07-30 14:48:22.391: E/AndroidRuntime(7517): FATAL EXCEPTION: main
07-30 14:48:22.391: E/AndroidRuntime(7517): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.Activity}: android.content.res.Resources$NotFoundException: File res/drawable/vpi__tab_indicator.xml from drawable resource ID #0x7f02005a
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread.access$600(ActivityThread.java:130)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.os.Handler.dispatchMessage(Handler.java:99)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.os.Looper.loop(Looper.java:137)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-30 14:48:22.391: E/AndroidRuntime(7517): at java.lang.reflect.Method.invokeNative(Native Method)
07-30 14:48:22.391: E/AndroidRuntime(7517): at java.lang.reflect.Method.invoke(Method.java:511)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-30 14:48:22.391: E/AndroidRuntime(7517): at dalvik.system.NativeStart.main(Native Method)
07-30 14:48:22.391: E/AndroidRuntime(7517): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/vpi__tab_indicator.xml from drawable resource ID #0x7f02005a
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.content.res.Resources.loadDrawable(Resources.java:1918)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.view.View.(View.java:3336)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.widget.TextView.(TextView.java:447)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.viewpagerindicator.TabPageIndicator$TabView.(TabPageIndicator.java:252)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.viewpagerindicator.TabPageIndicator.addTab(TabPageIndicator.java:152)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.viewpagerindicator.TabPageIndicator.notifyDataSetChanged(TabPageIndicator.java:209)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.viewpagerindicator.TabPageIndicator.setViewPager(TabPageIndicator.java:197)
07-30 14:48:22.391: E/AndroidRuntime(7517): at com.myapp.Activity.onCreate(Activity.java:27)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.Activity.performCreate(Activity.java:5008)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
07-30 14:48:22.391: E/AndroidRuntime(7517): … 11 more
07-30 14:48:22.391: E/AndroidRuntime(7517): Caused by: java.lang.NullPointerException
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.graphics.drawable.DrawableContainer$DrawableContainerState.addChild(DrawableContainer.java:524)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.graphics.drawable.StateListDrawable$StateListState.addStateSet(StateListDrawable.java:278)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:186)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)
07-30 14:48:22.391: E/AndroidRuntime(7517): at android.content.res.Resources.loadDrawable(Resources.java:1915)

Thanks!

  • 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-08T22:21:00+00:00Added an answer on June 8, 2026 at 10:21 pm

    When copying files from one place to the other, a couple of my ViewPagerIndicator drawables must have gotten corrupted along the way. I re-fetched the drawables from the repo, added them into the project, everything compiled and ran perfect.

    Hopefully that will save someone else a few hours.

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

Sidebar

Related Questions

I have a project that using some third-party libraries. My questions is how to
I have a project that's using git. When I received the repo, it had
I am using a Java Project that gives an user interface for doing some
We have a project that’s using many C++11 facilities, and we thought about this
I have got a project that is using jni to connect java wrapper and
I have a small project that I was using node-dirty for, but it's not
I have a Java project that I build using an Ant script. I am
I have an existing project that builds fine using my IDE. I'd like to
I have a project that needs to be done using ASP.NET. Currently, I'm using
I have a project that require me to do a auto complete search using

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.