iam stack
iam stack

Reputation: 97

NoClassDefFound error Android

Iam trying to run my Android project but I get the following error :-

01-01 13:28:06.775: E/AndroidRuntime(1812): java.lang.NoClassDefFoundError: com.mapps.dailystatusupdater.StatusUpdater
01-01 13:28:06.775: E/AndroidRuntime(1812):     at com.mapps.dailystatusupdater.SplashScreen$RefreshTokenTask.onPostExecute(SplashScreen.java:253)
01-01 13:28:06.775: E/AndroidRuntime(1812):     at com.mapps.dailystatusupdater.SplashScreen$RefreshTokenTask.onPostExecute(SplashScreen.java:1)

SpashScreen.java

private class RefreshTokenTask extends AsyncTask<Void, Void, Void>
    {

        @Override
        protected Void doInBackground(Void... params) 
        {
            // TODO Auto-generated method stub
            //some code
        }

        @Override
        protected void onPostExecute(Void result) 
        {
            // TODO Auto-generated method stub
            super.onPostExecute(result);
            Intent i = new Intent(SplashScreen.this, StatusUpdater.class);
            startActivity(i);
            finish();

        }

        @Override
        protected void onPreExecute() {
            // TODO Auto-generated method stub
            super.onPreExecute();
        }


    }

AndroidManifest.java

<activity
            android:name="com.mapps.dailystatusupdater.StatusUpdater"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

I updated my ADT to from 22.X to 23.0 .I have tried Cleaning project, restarting eclipse, Exporting my Android private libraries and nothing works.

enter image description here

enter image description here

How do I resolve this?

Upvotes: 1

Views: 57

Answers (2)

PPD
PPD

Reputation: 5890

goto android sdk manager make sure you have android build tools installed.

Upvotes: 1

max59
max59

Reputation: 606

You also need to install Android SDK Build-tools in Android SDK manager.

Upvotes: 0

Related Questions