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

  • Home
  • SEARCH
  • 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 6902931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:51:38+00:00 2026-05-27T07:51:38+00:00

I have an Android test project in which I test my main application. The

  • 0

I have an Android test project in which I test my main application. The tests for my provider work correctly. However, the tests that extend ActivityInstrumentationTestCase2 fail with NoClassDefFoundError. The tests are very basic but it seems they fail in the constructor because they can’t find the activity (although the package where it looks is OK).

I have similar test projects for other apps that work flawlessly. The only difference I see is that in this particular project I use android-support-v4.jar and I think this is where the problem lies. However, I haven’t managed to fix it. Any ideas?

  • 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-05-27T07:51:39+00:00Added an answer on May 27, 2026 at 7:51 am

    This post, that was updated to include android-support-v4.jar case, will help you:
    http://dtmilano.blogspot.com/2009/12/android-testing-external-libraries.html

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

Sidebar

Related Questions

I have an android project that has a test module that will remove and
I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
I have an Android project that branched into three different applications, app-1 , app-2
I'm dipping my toes into Android development. I have a project that will interface
I have android application that I need to debug using eclipse. When I right
I have an android lib project, and an android test project i've built in
I have a android project which feeds XML data from URL from web. I
I have a test project which demonstrates a memory leak caused by Admob 4.1.1.
I have one Android Project. I created Junit test project for the same. I
I have created one Android Project with Ant build. And also created Test Project

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.