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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:56:39+00:00 2026-06-18T10:56:39+00:00

EDIT After more investigation, it discovered that this has ant test command also doesn’t

  • 0

EDIT

After more investigation, it discovered that this has ant test command also doesn’t work, so it’s not a IntelliJ issue.

There is some warnings at app launch which suggest that the problem comes from a wrong link with ormlite framework :

WARN/dalvikvm(22209): Class resolved by unexpected DEX: Lcom/example/android/app/noclassdef/module/dao/BaseBrowserDAO;(0x4051f5e8):0x98558 ref [Lcom/j256/ormlite/dao/Dao;] Lcom/j256/ormlite/dao/Dao;(0x4051f5e8):0x97ec0

WARN/dalvikvm(22209): (Lcom/example/android/app/noclassdef/module/dao/BaseBrowserDAO; had used a different Lcom/j256/ormlite/dao/Dao; during pre-verification)

WARN/dalvikvm(22209): Link of class 'Lcom/example/android/app/noclassdef/module/dao/BaseBrowserDAO;' failed

But this only happen in the test project, the main project has no issues.

I found that since R17 the jar ‘really’ needs to be in libs directory, so ithought maybe i should copy the jars in the test project libs directory, but it didn’t change anything.

Original

My Android test project doesn’t run on Android, i get the following error :

java.lang.NoClassDefFoundError: com.mycompany.android.module.shop.database.MyDBHelper
at com.mycompany.android.module.shop.dao.DAOFactory.(DAOFactory.java:51)
at com.mycompany.android.module.shop.dao.DAOFactory.initSingleton(DAOFactory.java:58)
at com.mycompany.android.app.shop.test.EShopBaseTestCase.setUp(EShopBaseTestCase.java:41)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
Caused by: java.lang.ClassNotFoundException: com.mycompany.android.module.shop.database.MyDBHelper in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/com.mycompany.android.app.shop.test-1.apk:/mnt/asec/com.mycompany.android.app.shop-1/pkg.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
... 12 more

The test run without any problem on Eclipse so i guess it’s a configuration issue.

The ‘missing’ class is a source class of the App, it’s not in a jar nor in any external framework.

What puzzle me more is, looking at the stacktrace com.mycompany.android.module.shop.dao.DAOFactory is present but not com.mycompany.android.module.shop.database.MyDBHelper (which are in the same project…)

Anyone with an idea ? I’ve been stuck on it for some time now. It’s not the first time I’m using test project with IntelliJ so I compared my configuration with working project but i found no differences at all…

  • 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-18T10:56:40+00:00Added an answer on June 18, 2026 at 10:56 am

    Ok, actually the important message was

    […] had used a different Lcom/j256/ormlite/dao/Dao; during pre-verification

    Which means that my ormlite jars where copied in each project instead of being exported properly in the main project.

    Just checking the “export” checkbox on the jar solve the situation.

    I was greatly help by FragmentActivity can not be tested via ActivityInstrumentationTestCase2

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

Sidebar

Related Questions

[EDIT] I am changing this to more concisely explain what my problem was, after
EDIT After some more research I found that I cannot use a continuous form
FINAL EDIT: After following the answer from Darin Dimitrov, I have found that the
EDIT: a few weeks after I posted this question Evan Coury wrote an excellent
EDIT: My mistake was that I had a go after the first select statement
EDIT: This post was originally specific to ASP.NET, but after thinking about it I'm
Edit: After receiving more information from DCoder, the phrase I was searching for here
Edit note: After a seemingly enourmous amount of bad feedback MS got from their
I'm trying to immediately set a row to Edit mode after it is created.
Possible Duplicate: Saving changes after table edit in SQL Server Management Studio I need

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.