Android and Eclipse - java.lang.NoClassDefFoundError with project dependency -


i'm trying build abstract classes in 1 project template , implement them in another. when trying run activity implements template activity, noclassdeffounderror pops up. i've added template project java build path of other one, checked in "order , export", cleaned project, nothing helps. tried compile project 1.6 compiler. resulted same error. when trying add template project jar eclipse says there's duplicate of manifest files , won't allow it.

does has idea else can fix problem?

here's error log receive:

04-05 00:29:09.941: e/androidruntime(1348): fatal exception: main 04-05 00:29:09.941: e/androidruntime(1348): java.lang.illegalstateexception: not execute method of activity 04-05 00:29:09.941: e/androidruntime(1348):     @ android.view.view$1.onclick(view.java:2144) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.view.view.performclick(view.java:2485) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.view.view$performclick.run(view.java:9080) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.os.handler.handlecallback(handler.java:587) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.os.handler.dispatchmessage(handler.java:92) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.os.looper.loop(looper.java:123) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.app.activitythread.main(activitythread.java:3683) 04-05 00:29:09.941: e/androidruntime(1348):     @ java.lang.reflect.method.invokenative(native method) 04-05 00:29:09.941: e/androidruntime(1348):     @ java.lang.reflect.method.invoke(method.java:507) 04-05 00:29:09.941: e/androidruntime(1348):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:839) 04-05 00:29:09.941: e/androidruntime(1348):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:597) 04-05 00:29:09.941: e/androidruntime(1348):     @ dalvik.system.nativestart.main(native method) 04-05 00:29:09.941: e/androidruntime(1348): caused by: java.lang.reflect.invocationtargetexception 04-05 00:29:09.941: e/androidruntime(1348):     @ java.lang.reflect.method.invokenative(native method) 04-05 00:29:09.941: e/androidruntime(1348):     @ java.lang.reflect.method.invoke(method.java:507) 04-05 00:29:09.941: e/androidruntime(1348):     @ android.view.view$1.onclick(view.java:2139) 04-05 00:29:09.941: e/androidruntime(1348):     ... 11 more 04-05 00:29:09.941: e/androidruntime(1348): caused by: java.lang.noclassdeffounderror:  scf1984.games.testquest.testquestactivity 04-05 00:29:09.941: e/androidruntime(1348):     @ scf1984.games.testquest.testmainactivity.starttestquest(testmainactivity.java:18) 04-05 00:29:09.941: e/androidruntime(1348):     ... 14 more 

and manifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="scf1984.games.testquest" android:versioncode="1" android:versionname="1.0" >  <uses-sdk     android:minsdkversion="8"     android:targetsdkversion="17" />  <application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >     <activity         android:name="scf1984.games.testquest.testmainactivity"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity         android:name="scf1984.games.testquest.testquestactivity"         android:label="@string/app_name" >      </activity> </application>  </manifest> 

the invoking method:

    public void starttestquest(view v) {     intent = new intent(this,             scf1984.games.testquest.testquestactivity.class);     startactivity(i); } 

you need mark "template project" android library project. go project->properties->android , checked "is library".


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -