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.

asked 29 Sep '11, 15:09

Bytronics1's gravatar image

Bytronics1
962510
accept rate: 100%


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,

  1. Display the 'Package Explorer' window in Eclipse if it is not already shown.
  2. From the Window menu, choose 'Show View » Package Explorer'.
  3. Expand the 'libs' folder of the CustDB project.
  4. Right click on 'UltraLiteJNI12.jar' and select 'Build Path » Add to Build Path' from the context menu.
  5. In the 'Package Explorer' window in Eclipse expand the 'Referenced Libraries' folder.
  6. Right click on 'UltraLiteJNI12.jar' and select 'Configure Build Path' from the context menu.
  7. Select 'Javadoc location: (None)' under 'UltraLiteJNI12.jar - CustDB/libs' and click the 'Edit' button.
  8. Click 'Browse' and then open %SQLANY12%UltraLiteUltraLiteJAndroidhtml from your SQL Anywhere installation directory.
  9. Click 'OK' to close the 'Javadoc For UltraLiteJNI12.Jar' window.

Clean your project and I think you should be ready to go.

permanent link

answered 29 Sep '11, 15:21

Bill%20Frier's gravatar image

Bill Frier
515914
accept rate: 41%

Did what you said, works liek a charm now. Thanks so much!

(29 Sep '11, 15:29) Bytronics1
Comment Text Removed
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×77
×67

question asked: 29 Sep '11, 15:09

question was seen: 2,660 times

last updated: 04 Oct '11, 06:58