<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Building an Android Application with UltraliteJ API error (Conversion to Dalvik format failed) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaa-p/13849180#M4880023</link>
    <description>&lt;P&gt;I believe the fatal error is,&lt;/P&gt;
&lt;P&gt;UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/ianywhere/ultralitejni12/ColumnSchema;&lt;/P&gt;
&lt;P&gt;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,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Display the 'Package Explorer' window in Eclipse if it is not already shown.&lt;/LI&gt;
&lt;LI&gt;From the Window menu, choose 'Show View » Package Explorer'.&lt;/LI&gt;
&lt;LI&gt;Expand the 'libs' folder of the CustDB project.&lt;/LI&gt;
&lt;LI&gt;Right click on 'UltraLiteJNI12.jar' and select 'Build Path » Add to Build Path' from the context menu.&lt;/LI&gt;
&lt;LI&gt;In the 'Package Explorer' window in Eclipse expand the 'Referenced Libraries' folder.&lt;/LI&gt;
&lt;LI&gt;Right click on 'UltraLiteJNI12.jar' and select 'Configure Build Path' from the context menu.&lt;/LI&gt;
&lt;LI&gt;Select 'Javadoc location: (None)' under 'UltraLiteJNI12.jar - CustDB/libs' and click the 'Edit' button.&lt;/LI&gt;
&lt;LI&gt;Click 'Browse' and then open %SQLANY12%UltraLiteUltraLiteJAndroidhtml from your SQL Anywhere installation directory.&lt;/LI&gt;
&lt;LI&gt;Click 'OK' to close the 'Javadoc For UltraLiteJNI12.Jar' window.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Clean your project and I think you should be ready to go.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2011 15:21:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-29T15:21:53Z</dc:date>
    <item>
      <title>Building an Android Application with UltraliteJ API error (Conversion to Dalvik format failed)</title>
      <link>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaq-p/13849179</link>
      <description>&lt;P&gt;I am trying to complete &lt;A href="http://dcx.sybase.com/index.html#1201/en/ulj/uj-android-tutorial.html" target="_blank"&gt;this&lt;/A&gt; 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:&lt;/P&gt;
&lt;P&gt;[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 &lt;/P&gt;
&lt;P&gt;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&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 15:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaq-p/13849179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Building an Android Application with UltraliteJ API error (Conversion to Dalvik format failed)</title>
      <link>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaa-p/13849180#M4880023</link>
      <description>&lt;P&gt;I believe the fatal error is,&lt;/P&gt;
&lt;P&gt;UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/ianywhere/ultralitejni12/ColumnSchema;&lt;/P&gt;
&lt;P&gt;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,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Display the 'Package Explorer' window in Eclipse if it is not already shown.&lt;/LI&gt;
&lt;LI&gt;From the Window menu, choose 'Show View » Package Explorer'.&lt;/LI&gt;
&lt;LI&gt;Expand the 'libs' folder of the CustDB project.&lt;/LI&gt;
&lt;LI&gt;Right click on 'UltraLiteJNI12.jar' and select 'Build Path » Add to Build Path' from the context menu.&lt;/LI&gt;
&lt;LI&gt;In the 'Package Explorer' window in Eclipse expand the 'Referenced Libraries' folder.&lt;/LI&gt;
&lt;LI&gt;Right click on 'UltraLiteJNI12.jar' and select 'Configure Build Path' from the context menu.&lt;/LI&gt;
&lt;LI&gt;Select 'Javadoc location: (None)' under 'UltraLiteJNI12.jar - CustDB/libs' and click the 'Edit' button.&lt;/LI&gt;
&lt;LI&gt;Click 'Browse' and then open %SQLANY12%UltraLiteUltraLiteJAndroidhtml from your SQL Anywhere installation directory.&lt;/LI&gt;
&lt;LI&gt;Click 'OK' to close the 'Javadoc For UltraLiteJNI12.Jar' window.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Clean your project and I think you should be ready to go.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 15:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaa-p/13849180#M4880023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Building an Android Application with UltraliteJ API error (Conversion to Dalvik format failed)</title>
      <link>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaa-p/13849181#M4880024</link>
      <description>&lt;P&gt;Did what you said, works liek a charm now. Thanks so much!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 15:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/building-an-android-application-with-ultralitej-api-error-conversion-to/qaa-p/13849181#M4880024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T15:29:39Z</dc:date>
    </item>
  </channel>
</rss>

