java.lang.NoClassDefFoundError error in android project -


i make project includes following jars.

enter image description here

in build path follows

enter image description here

main.java

public class main extends activity {      public int welcomescreendisplay = 1000;     boolean ispr=false;     @override     protected void oncreate(bundle savedinstancestate)         {             // todo auto-generated method stub              super.oncreate(savedinstancestate);             requestwindowfeature(window.feature_no_title);             getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen);             setcontentview(r.layout.splash);               /** create thread show splash splash time */              thread welcomethread = new thread() {                 int wait = 0;                  @override                 public void run() {                     try {                         super.run();                          while (wait < welcomescreendisplay) {                             sleep(100);                             wait += 100;                         }                     } catch (exception e) {                         e.printstacktrace();                     } {                               intent mintent=new intent(getapplicationcontext(), draweractivity .class).setflags(intent.flag_activity_clear_top);                             startactivity(mintent);                             finish();                        }                 }             };             welcomethread.start();         }          } 

draweractivity.java

 package com.pkg.name; import android.os.bundle; import android.support.v4.app.fragmentactivity;   public class draweractivity extends fragmentactivity  {   protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.spinner_year);     } } 

manifest.xml

  <?xml version="1.0" encoding="utf-8"?>  <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.pkg.name" android:versioncode="1" android:versionname="1.0" >   <uses-sdk android:minsdkversion="11" />    <application     android:allowbackup="true"     android:icon="@drawable/app_icon"     android:label="@string/app_name"      android:theme="@style/customactionbartheme" >       <activity         android:name="com.pkg.name.splash"         android:label="@string/app_name"         android:screenorientation="portrait"         android:windowsoftinputmode="statehidden|statevisible" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity         android:name="com.pkg.name.draweractivity"          android:screenorientation="portrait"     android:theme="@style/appbasetheme"     android:windowsoftinputmode="statehidden|statevisible" >     </activity>    </application>    </manifest> 

when run application in device give me error like

  fatal exception: thread-912   java.lang.noclassdeffounderror:com.pkg.name.draweractivity   @ com.pkg.name.splash$1.run(splash.java:53) 

any idea how can solve ?your suggestions appreciable.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -