java.lang.NoClassDefFoundError: com.millennialmedia.android.MMAdView
<p>I am Using Millenial media in my app. i have several apps running with following code but now when i try to copy paste running code for new apps it shows the error  <code>java.lang.NoClassDefFoundError: com.millennialmedia.android.MMAdView</code> </p>

<p>this is how i am creating <code>MMAdView</code> object and inserting it in my <code>Linear Layout</code>.</p>

<pre><code>LinearLayout myLayout = (LinearLayout) findViewById(R.id.layoutadd);
adview = new MMAdView(MyClass.this, MYAPID,"MMBannerAdBottom", 30);
myLayout.addView(adview, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT));
MMAdListener listener = new MyAdListener();
adview.setListener(listener);
adview.callForAd();
</code></pre>

<p>this is the xml declaration</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xxx.xxx"
    android:versionCode="1"
    android:versionName="1.0" 
    android:installLocation="auto"&gt;

    &lt;uses-sdk android:minSdkVersion="8" /&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".MyClass"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation"
            android:screenOrientation="portrait" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity android:name="com.millennialmedia.android.MMAdViewOverlayActivity"&gt;
        &lt;/activity&gt;
        &lt;activity android:name="com.millennialmedia.android.VideoPlayer" 
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        android:configChanges="keyboardHidden|orientation|keyboard" &gt;
        &lt;/activity&gt;
    &lt;/application&gt;
    &lt;uses-permission android:name="android.permission.SEND_SMS"/&gt;
&lt;uses-permission android:name="android.permission.RECEIVE_SMS"/&gt;
&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
&lt;/manifest&gt;
</code></pre>

<p>i have also imported liabrary...</p>

<p>THIS THING IS WORKING IN MY OTHER APPS JUST IS THAT FROM FEW DAYS ITS NOT WORKING PROPERLY FOR NEW APPS.</p>
