on 2011 Sep 29 4:09 PM
I am trying to complete this tutorial, and have currently completed all the steps in lesson 1. I have also read the readme file about the mixed-case file correction, and have changed my code accordingly. However, when the project attempts to build, I recieve the following error:
[2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/AndroidCustDB) does not match path (bin/com/sybase/custdb/AndroidCustDB.class) ...while parsing bin/com/sybase/custdb/AndroidCustDB.class ...while processing bin/com/sybase/custdb/AndroidCustDB.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDB$Synchronizer) does not match path (bin/com/sybase/custdb/CustDB$Synchronizer.class) ...while parsing bin/com/sybase/custdb/CustDB$Synchronizer.class ...while processing bin/com/sybase/custdb/CustDB$Synchronizer.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDB) does not match path (bin/com/sybase/custdb/CustDB.class) ...while parsing bin/com/sybase/custdb/CustDB.class ...while processing bin/com/sybase/custdb/CustDB.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBException) does not match path (bin/com/sybase/custdb/CustDBException.class) ...while parsing bin/com/sybase/custdb/CustDBException.class ...while processing bin/com/sybase/custdb/CustDBException.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$1) does not match path (bin/com/sybase/custdb/CustDBMain$1.class) ...while parsing bin/com/sybase/custdb/CustDBMain$1.class ...while processing bin/com/sybase/custdb/CustDBMain$1.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$2) does not match path (bin/com/sybase/custdb/CustDBMain$2.class) ...while parsing bin/com/sybase/custdb/CustDBMain$2.class ...while processing bin/com/sybase/custdb/CustDBMain$2.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$3) does not match path (bin/com/sybase/custdb/CustDBMain$3.class) ...while parsing bin/com/sybase/custdb/CustDBMain$3.class ...while processing bin/com/sybase/custdb/CustDBMain$3.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$4) does not match path (bin/com/sybase/custdb/CustDBMain$4.class) ...while parsing bin/com/sybase/custdb/CustDBMain$4.class ...while processing bin/com/sybase/custdb/CustDBMain$4.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$5) does not match path (bin/com/sybase/custdb/CustDBMain$5.class) ...while parsing bin/com/sybase/custdb/CustDBMain$5.class ...while processing bin/com/sybase/custdb/CustDBMain$5.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$6) does not match path (bin/com/sybase/custdb/CustDBMain$6.class) ...while parsing bin/com/sybase/custdb/CustDBMain$6.class ...while processing bin/com/sybase/custdb/CustDBMain$6.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$7) does not match path (bin/com/sybase/custdb/CustDBMain$7.class) ...while parsing bin/com/sybase/custdb/CustDBMain$7.class ...while processing bin/com/sybase/custdb/CustDBMain$7.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain$StatusOnItemSelectedListener) does not match path (bin/com/sybase/custdb/CustDBMain$StatusOnItemSelectedListener.class) ...while parsing bin/com/sybase/custdb/CustDBMain$StatusOnItemSelectedListener.class ...while processing bin/com/sybase/custdb/CustDBMain$StatusOnItemSelectedListener.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/CustDBMain) does not match path (bin/com/sybase/custdb/CustDBMain.class) ...while parsing bin/com/sybase/custdb/CustDBMain.class ...while processing bin/com/sybase/custdb/CustDBMain.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/IOrderDisplay) does not match path (bin/com/sybase/custdb/IOrderDisplay.class) ...while parsing bin/com/sybase/custdb/IOrderDisplay.class ...while processing bin/com/sybase/custdb/IOrderDisplay.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$array) does not match path (bin/com/sybase/custdb/R$array.class) ...while parsing bin/com/sybase/custdb/R$array.class ...while processing bin/com/sybase/custdb/R$array.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$attr) does not match path (bin/com/sybase/custdb/R$attr.class) ...while parsing bin/com/sybase/custdb/R$attr.class ...while processing bin/com/sybase/custdb/R$attr.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$drawable) does not match path (bin/com/sybase/custdb/R$drawable.class) ...while parsing bin/com/sybase/custdb/R$drawable.class ...while processing bin/com/sybase/custdb/R$drawable.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$id) does not match path (bin/com/sybase/custdb/R$id.class) ...while parsing bin/com/sybase/custdb/R$id.class ...while processing bin/com/sybase/custdb/R$id.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$layout) does not match path (bin/com/sybase/custdb/R$layout.class) ...while parsing bin/com/sybase/custdb/R$layout.class ...while processing bin/com/sybase/custdb/R$layout.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$menu) does not match path (bin/com/sybase/custdb/R$menu.class) ...while parsing bin/com/sybase/custdb/R$menu.class ...while processing bin/com/sybase/custdb/R$menu.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R$string) does not match path (bin/com/sybase/custdb/R$string.class) ...while parsing bin/com/sybase/custdb/R$string.class ...while processing bin/com/sybase/custdb/R$string.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/R) does not match path (bin/com/sybase/custdb/R.class) ...while parsing bin/com/sybase/custdb/R.class ...while processing bin/com/sybase/custdb/R.class [2011-09-29 15:03:24 - CustDB] Dx trouble processing: [2011-09-29 15:03:24 - CustDB] Dx class name (com/sybase/custdb/SchemaCreator) does not match path (bin/com/sybase/custdb/SchemaCreator.class) ...while parsing bin/com/sybase/custdb/SchemaCreator.class ...while processing bin/com/sybase/custdb/SchemaCreator.class [2011-09-29 15:03:24 - CustDB] Dx
UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/ianywhere/ultralitejni12/ColumnSchema; [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.dex.file.DexFile.add(DexFile.java:143) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.processClass(Main.java:372) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.processFileBytes(Main.java:346) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.access$400(Main.java:59) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:294) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.processOne(Main.java:313) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.processAllFiles(Main.java:233) [2011-09-29 15:03:24 - CustDB] Dx at com.android.dx.command.dexer.Main.run(Main.java:185) [2011-09-29 15:03:24 - CustDB] Dx at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2011-09-29 15:03:24 - CustDB] Dx at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [2011-09-29 15:03:24 - CustDB] Dx at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [2011-09-29 15:03:24 - CustDB] Dx at java.lang.reflect.Method.invoke(Unknown Source) [2011-09-29 15:03:24 - CustDB] Dx at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179) [2011-09-29 15:03:24 - CustDB] Dx at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:652) [2011-09-29 15:03:24 - CustDB] Dx at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:510) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) [2011-09-29 15:03:24 - CustDB] Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [2011-09-29 15:03:24 - CustDB] Dx 23 warnings [2011-09-29 15:03:24 - CustDB] Dx 1 error; aborting [2011-09-29 15:03:24 - CustDB] Conversion to Dalvik format failed with error 1
I have done research on this error, and all I've seen as a solution is to Clean the project (I have repeatedly, to no avail.) I am currently running the application in Eclipse Indigo, though I have also attemped to do the tutorial in MyEclipse 8, and run into the same problem. Does anyone know what the underlying cause of this error is, and how I can fix it? Thanks in advance.
Request clarification before answering.
I believe the fatal error is,
UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/ianywhere/ultralitejni12/ColumnSchema;
This is caused by the PROJ_HOME environment variable being in the library path. If you remove it and the reference to the UltraLite JAR from the library path and do the following instead,
Clean your project and I think you should be ready to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.