App crashes when build on device : java.lang.ClassNotFoundException

Im new to android development and recently handled a project to work with. When I try to build the app on device, Logcat throw this errors:

05-23 10:53:26.267: E/AndroidRuntime(26203): FATAL EXCEPTION: main
05-23 10:53:26.267: E/AndroidRuntime(26203): Process: com.pepperpk.rekky, PID: 26203**
05-23 10:53:26.267: E/AndroidRuntime(26203): java.lang.RuntimeException: Unable to instantiate application com.pepperpk.rekky.RekkyApp: java.lang.ClassNotFoundException: Didn't find class "com.pepperpk.rekky.RekkyApp" on path: DexPathList[[zip file "/data/app/com.pepperpk.rekky-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.pepperpk.rekky-1, /vendor/lib, /system/lib]]

App also crashes on device when Logcat throw these errors saying:

“Unfortunately, Rekky has stopped.”

I’ve seen similar questions asked before here but nothing suits to my problem.

need help!

Here is AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pepperpk.rekky"
android:versionCode="1"
android:versionName="0.1.1" >

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="21" />

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

<!--
     <permission
    android:name="com.pepperpk.rekky.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />


-->

<uses-permission android:name="com.pepperpk.rekky.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<!--
 The following two permissions are not required to use 
 Google Maps Android API v2, but are recommended. 
 Required to show current location



-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application
    android:name="com.pepperpk.rekky.RekkyApp"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:theme="@style/Theme.Rekky" >
    <activity
        android:name="com.pepperpk.rekky.ui.activities.SplashActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.FacebookLoginActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.WhereAreYouActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.DashboardActivity"
        android:configChanges="orientation|screenSize|keyboardHidden">
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.FeedsActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
        <intent-filter>
            <action android:name="android.intent.action.SEARCH" />
        </intent-filter>

        <meta-data
            android:name="android.app.default_searchable"
            android:value="com.pepperpk.rekky.ui.activities.FeedsActivity" />
        <meta-data
            android:name="android.app.searchable"
            android:resource="@xml/searchable" />
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.FeedsActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.WhosInTownActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
        <intent-filter>
            <action android:name="android.intent.action.SEARCH" />
        </intent-filter>

        <meta-data
            android:name="android.app.default_searchable"
            android:value="com.pepperpk.rekky.ui.activities.WhosInTownActivity" />
        <meta-data
            android:name="android.app.searchable"
            android:resource="@xml/whos_in_town_searchable" />
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.FeedsActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.SendMessageActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.WhosInTownActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.dialogs.AdvanceSearchDialogActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.DiscoverPlacesActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.PlaceActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name=".ui.activities.AddToRekkyListActivity"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/fb_app_id_android.frt" />

    <activity
        android:name="com.facebook.LoginActivity"
        android:screenOrientation="portrait" />
    <activity
        android:name="com.pepperpk.rekky.ui.activities.ProfileDetails"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.PlacesDetails"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.fragments.UserRekkies"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.RekkiesMineListDetails"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.PagerIndicator"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.ConnectToInstagranFoursquare"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.AddFacebookFriends"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.PlaceIndicator"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.activities.FriendsRekkiesList"
        android:configChanges="orientation|screenSize|keyboardHidden" >
    </activity>
    <activity
        android:name="com.pepperpk.rekky.ui.dialogs.DisplayImage"
        android:screenOrientation="portrait"
        android:theme="@style/Theme.D1NoTitleDim" >
    </activity>

    <!-- Rewite app package name! -->
    <receiver
        android:name="com.pepperpk.gcmplugin.GcmBroadcastReceiver"
        android:permission="com.google.android.c2dm.permission.SEND" >
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

            <category android:name="com.pepperpk.rekky" />
        </intent-filter>
    </receiver>

    <service android:name="com.pepperpk.gcmplugin.GcmIntentService" />

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="@string/mapkey_debug_usman" />

    <!--
    <service android:name="com.android.locationdetector.services.BackgroundLocationService" />
    <service android:name="com.commonsware.cwac.locpoll.LocationPollerService" />

    <receiver android:name="com.android.locationdetector.broadcastreceiver.LocationReceiver" />
    <receiver android:name="com.commonsware.cwac.locpoll.LocationPoller" />
    <receiver android:name="com.pepperpk.eventi.receivers.LocationChanged" >
        <intent-filter>
            <action android:name="android.location.PROVIDERS_CHANGED" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </receiver>

    -->
    <activity
        android:name=".ui.activities.MyRekkiesList"
        android:screenOrientation="portrait" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.pepperpk.rekky.ui.activities.DashboardActivity" />
    </activity>
</application>


Source: eclipse

Leave a Reply