1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

missing target class to test in my test application

Discussion in 'Android App Developers' started by jordanthompson, Nov 10, 2011.

  1. jordanthompson
    Offline

    jordanthompson New Member

    Joined:
    Nov 10, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,
    I have a project (that compiles and runs in the emulator.)
    I have a test project that tests part of this project. This test project also compiles with no problems, but when I try to run (test) it in the emulator, I get a NoClassDefFoundError exception on one of the classes my test class tests (I hope that made sense!) when it starts to run in the emulator. This is coming out of the adb log.
    I looked in the bin directory (of the test project) for the missing class, but could not find it... Should it be there?
    I found no reference (apk, etc) of the project I am trying to test either in the test projects bin directory.
    How does the test project get the classes it needs to test against (in the classpath, I assume.) How do the tested classes get moved to the emulator?
    I did try running the app before testing, so I know it is installed and runs correctly.
    BTW, I am using netbeans with the nbandroid plugin.

    thanks for any suggestions or help you may have.
    Jordan
  2. r2sjoblom
    Offline

    r2sjoblom New Member

    Joined:
    Feb 24, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Maybe check your manifest, any resource references. I have had this happen to me before. My problem was an XML reference to a R.layout and R.id.
Search tags for this page

android.target.class