NoClassDefFoundError developing library with Android app, Maven, and Eclipse -
I am developing an Android library () whose artwork is managed through Maven, and for development I'm using Eclipse. I am packing artifacts as a jar file, because I do not have any assets in the project, there are only Java classes and there are also.
I am also developing an Android User Interface application () It depends on the SiriRestClient library
Problem:
I started because Maven SiriRestClientUI dependency management on SiriRestClient library, if I have a library project and open simultaneously in SiriRestClientUI eclipse, I get a For example: This library and app together during a development process Unjlaht is, as I have found that edit only workaround library code, Library closed Ject, Library Project to Pro, and perform SiriRestClientUI app then. I think this issue is from how Eclipse / Meven Maven is handling dependence when the Library Project is open. There is an Eclipse Screenshot in which the SirConnected UI Project is shown when the Library Project (SerialStclient, above) closes: You can edit the" local "" meowon repository "under" mein dyspregncy "under However, when I open the SiriarchClient Library Project, my "Maven dependency" entries change and the JAR file disappears, and instead a folder is shown for the project: If I try to launch SiriASTCLANTUI I have both projects open, then I get Question: How can I configure Eclipse / Maven so that it always depends on changing the Maven dependency in the local project instead of the JAR file in the local Mewen repository? Or, is there another way to get rid of The pom.xml file is for the Library Project. The pim.xml file for the SiriRestClientUI App project is. Try it: right click on project - & gt; Properties - & gt; Maven - & gt; Uncheck NoClassDefFoundError when I try to deploy SiriRestClientUI app for a device Please.
11-01 16: 11: 52.288: E / Android Random (9 409): java.lang.NoClassDefFound error: edu.usf .cutr.siri. Android.client.config.SiriJacksonConfig 11-01 16: 11: 52.288: E / AndroidRuntime (9409): at edu.usf.cutr.siri.android.ui.MainActivity.onCreate (MainActivity.java:100) 11-01 16 : 11: 52.288: E / Android Random (9 409): Android. App Activate.Perform Create (Activity Java: 4470) 11-01 16: 11: 52.288: E / Android Random (9 409): Android. App Instrumentation on CallActivityOnCreate (Instrumentation.java:1053) 11-01 16: 11: 52.288: E / AndroidRuntime (9409): android.app.ActivityThread.performLaunchActivity (ActivityThread.java:1934) on 11-01 16:11:11 52.288: E / AndroidRuntime (9409): Android. App ActiviteTradeHardley Launching Activity (ActivityTrad.Account 995) 11-01 16: 11: 52.288: E / Android Random (9 409): Android. On the App ActivityTrade.X $ 600 (ActivityHaveJava: 128) 11-01 16: 11: 52.288: E / Android Random (9 409): Android. App ActiveTrade $ H. Holland Message (ActivityTrad.Java1161) 11-01 16:11:52. 288: E / AndroidRuntime (9409): android.os.Handler.dispatchMessage at (Handler.java:99) 11-01 16: 11: 52.288: E / AndroidRuntime (9409): at android.os.Looper.loop (Looper .java: 137) 11-01 16: 11: 52.288: E / Android Random (9 409): Android. App ActivateTrade.Mine (ActivityTrad.JewE 4514) 11-01 16: 11: 52.288: E / Android Time (9409): Java.lang.reflect.Method.invokeNative at (native method) 11-01 16: 11: 52.288: E / Androordantum (9409): at java.lang.reflect.Method.invoke (Method Java 1111) 11 -01 16: 11: 52.288: E / AndroidRuntime (9409): 11 :: 52.288: E / AndroidRuntime (9409 com .android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:980) at 11-01 16): com.android.internal.os.ZygoteInit.main (ZygoteInit.java:747) at 11-01 16: 11: 52.288: E / AndroidRuntime (9409): dalvik.system.NativeStart.main (Native Method) `
sirirestclient-1.0. 0-SNAPSHOT.jar file. , Which I want, under this configuration, everything works fine.
NoClassDefFoundError Therefore, It seems that Eclipse is redirecting the project construction and library classes are not being included. NoClassDefFoundError with this configuration? Resolve reliance on workspace projects .
Comments
Post a Comment