Android: NoClassDefError occurs in <4.0 but not >=4.0?
<p>I am trying to launch a new intent from my Activity, but I get a NoClassDefFoundError.  The exception occurs resolving <code>MyClassB.class</code>.  Oddly I can resolve other classes, and the error only occurs in android versions 2.2 and 2.3, it works fine in 4.0+.  </p>

<p>Both the class that causes the error and the other classes that resolve successfully are in the same package as the Activity where the code is executing.  Basically, the below code gives the below error on 2.2/2.3, but works fine on 4.0+.  I have also tried using the full package name like: <code>com.me.MyClassB.class</code>, but get the same error.</p>

<p>I realized this question is pretty vague, but am thoroughly confused and hoping that somebody might be able to help.</p>

<pre><code>package com.me;

public class MyActivity extends Activity
{
     protected onCreate(Bundle bundle)
    {
       super.onCreat(bundle);

        Class a = MyClassA.class;
        Class b = MyClassB.class;
    }
}


01-17 10:37:36.473: E/AndroidRuntime(1976): java.lang.NoClassDefFoundError: com.me.MyClassB
</code></pre>
