Android application has stopped with NoClassDefFoundError
<pre><code>My Manifest file is below




&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="FXPAL.Unity.Android"
android:versionCode="1"
android:versionName="1.0" &gt;

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

&lt;application
    android:icon="@drawable/ic_launcher"
    android:theme="@android:style/Theme.Light" android:name=".UnityMobileApp" android:debuggable="true"
    android:label="@string/app_name" &gt;
    &lt;activity
        android:name=".UnityMain"
        android:label="@string/app_name" 
        android:theme="@android:style/Theme.Light.NoTitleBar"&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;intent-filter&gt;
            &lt;action android:name="FXPAL.Unity.Android.LAUNCH" /&gt;
            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".IndividualViewActivity"
        android:label="@string/app_name" android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".EditPreferences" android:label="@string/app_name"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".LoginActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".SendPingActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".ReceivePingActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".SendNudgeActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".PlacesActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".IncomingCallActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".ReceiveNudgeActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".ConfirmNudgeActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".FinalNudgeActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".ReportingActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle"&gt;
    &lt;/activity&gt;
    &lt;service android:name=".ReportingService" /&gt;
    &lt;receiver android:name=".StartupReceiver"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
            &lt;category android:name="android.intent.category.HOME" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
    &lt;receiver android:name=".PingNudgeReceiver"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.xtify.android.sdk.SHOW_NOTIFICATION" /&gt;
            &lt;!-- KEEP THE FORWARD SLASH IN FRONT OF THE API KEY ON THE LINE BELOW --&gt;
            &lt;data android:scheme="notif" android:host="notification.xtify.com"
                android:pathPrefix="/8d55490a-43ec-42d3-90f8-57c91ab06ce8" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
    &lt;activity android:name="com.xtify.android.sdk.SettingsActivity"
        android:label="Settings"&gt;
    &lt;/activity&gt;
    &lt;activity android:name="com.xtify.android.sdk.NotificationDetailsActivity"
        android:label="Notification Details"&gt;
    &lt;/activity&gt;
    &lt;activity android:name="com.xtify.android.sdk.NotificationSettingsActivity"
        android:label="Notification Settings"&gt;
    &lt;/activity&gt;
    &lt;service android:name="com.xtify.android.sdk.MainService"
        android:label="Notifications Service"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.xtify.android.sdk.IMainService" /&gt;
            &lt;category android:name="com.xtify.android.sdk.IMainService" /&gt;
            &lt;category android:name="com.xtify.android.sdk.IMainService.V1033"/&gt;

        &lt;/intent-filter&gt;
    &lt;/service&gt;
    &lt;receiver android:name="com.xtify.android.sdk.MainReceiver"&gt;
        &lt;intent-filter&gt;
            &lt;!-- &lt;action android:name="com.xtify.android.sdk.SHOW_NOTIFICATION" /&gt; --&gt;
            &lt;action android:name="com.xtify.android.sdk.NOTIFICATION_CLICKED" /&gt;
            &lt;action android:name="com.xtify.android.sdk.NOTIFICATION_CLEARED" /&gt;
            &lt;!-- MAKE SURE THE API KEY ON THE NEXT LINE IS PRECEDED BY A SLASH --&gt;
            &lt;data android:scheme="notif" android:host="notification.xtify.com"
                android:pathPrefix="/8d55490a-43ec-42d3-90f8-57c91ab06ce8" /&gt;
        &lt;/intent-filter&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
            &lt;action android:name="android.intent.action.ACTION_POWER_CONNECTED" /&gt;
            &lt;action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" /&gt;
            &lt;action android:name="com.xtify.android.sdk.SEND_SETTINGS" /&gt;
        &lt;/intent-filter&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.PACKAGE_ADDED" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
            &lt;data android:scheme="package" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
    &lt;meta-data android:name="XTIFY_SDK_API_KEY"
        android:value="8d55490a-43ec-42d3-90f8-57c91ab06ce8" /&gt;

&lt;/application&gt;
&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
&lt;uses-permission android:name="android.permission.GET_TASKS"/&gt;
&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
&lt;uses-permission android:name="android.permission.READ_CALENDAR" /&gt;
&lt;uses-permission android:name="android.permission.WRITE_CALENDAR" /&gt;
&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;
&lt;uses-permission android:name="android.permission.VIBRATE"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
&lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
&lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
&lt;uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
&lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/&gt;
</code></pre>

<p></p>

<pre><code>   My LogCat File is

05-16 23:07:48.029: E/dalvikvm(768): Could not find class 'com.commonsware.cwac.merge.MergeAdapter', referenced from method FXPAL.Unity.Android.UnityMain.updateView
05-16 23:07:48.289: E/dalvikvm(768): Could not find class 'com.xtify.android.sdk.PersistentLocationManager', referenced from method         FXPAL.Unity.Android.ReportingService.onCreate
05-16 23:07:48.619: E/AndroidRuntime(768): FATAL EXCEPTION: main
05-16 23:07:48.619: E/AndroidRuntime(768): java.lang.NoClassDefFoundError: com.xtify.android.sdk.PersistentLocationManager
05-16 23:07:48.619: E/AndroidRuntime(768):  at FXPAL.Unity.Android.ReportingService.onCreate(ReportingService.java:240)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.app.ActivityThread.handleCreateService(ActivityThread.java:2253)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.app.ActivityThread.access$1600(ActivityThread.java:123)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.os.Looper.loop(Looper.java:137)
05-16 23:07:48.619: E/AndroidRuntime(768):  at android.app.ActivityThread.main(ActivityThread.java:4424)
05-16 23:07:48.619: E/AndroidRuntime(768):  at java.lang.reflect.Method.invokeNative(Native Method)
05-16 23:07:48.619: E/AndroidRuntime(768):  at java.lang.reflect.Method.invoke(Method.java:511)
05-16 23:07:48.619: E/AndroidRuntime(768):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-16 23:07:48.619: E/AndroidRuntime(768):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-16 23:07:48.619: E/AndroidRuntime(768):  at dalvik.system.NativeStart.main(Native Method)
05-16 23:22:50.419: E/dalvikvm(790): Could not find class 'com.xtify.android.sdk.PersistentLocationManager', referenced from method FXPAL.Unity.Android.ReportingService.onCreate
05-16 23:22:50.529: E/AndroidRuntime(790): FATAL EXCEPTION: main
05-16 23:22:50.529: E/AndroidRuntime(790): java.lang.NoClassDefFoundError: com.xtify.android.sdk.PersistentLocationManager
05-16 23:22:50.529: E/AndroidRuntime(790):  at FXPAL.Unity.Android.ReportingService.onCreate(ReportingService.java:240)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.app.ActivityThread.handleCreateService(ActivityThread.java:2253)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.app.ActivityThread.access$1600(ActivityThread.java:123)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.os.Looper.loop(Looper.java:137)
05-16 23:22:50.529: E/AndroidRuntime(790):  at android.app.ActivityThread.main(ActivityThread.java:4424)
05-16 23:22:50.529: E/AndroidRuntime(790):  at java.lang.reflect.Method.invokeNative(Native Method)
05-16 23:22:50.529: E/AndroidRuntime(790):  at java.lang.reflect.Method.invoke(Method.java:511)
05-16 23:22:50.529: E/AndroidRuntime(790):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-16 23:22:50.529: E/AndroidRuntime(790):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-16 23:22:50.529: E/AndroidRuntime(790):  at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>I am trying to upgrade my android SDK from 2.2 to 4.0.3. I found many issues. I was able to clear some of them. But still there are few left. Can you please look at these errors and help me out in fixing them. </p>

<p>I was looking at these for 3 days, but still the situation is same. I didnt get any compilation errors, but while executing I got the errors shown in the logcat. It says class not found. But I tried in many different forums but was not successful in getting them resolved.</p>

<p>Looking forward to your reply friends.</p>

<p>Regards,
Rakesh</p>
