Problems with ADT r14

just updated the SDK and ADT after it was released with the ICS announcement, but with some problems associated with the creation of my projects, even after cleaning / updating / restarting eclipse this persists.

[2011-10-19 15:24:51 - gobandroid] Dx UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/ActionBar$LayoutParams; [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.dex.file.DexFile.add(DexFile.java:163) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.processClass(Main.java:486) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.access$400(Main.java:67) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.processOne(Main.java:418) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.dx.command.dexer.Main.run(Main.java:206) [2011-10-19 15:24:51 - gobandroid] Dx at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2011-10-19 15:24:51 - gobandroid] Dx at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [2011-10-19 15:24:51 - gobandroid] Dx at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2011-10-19 15:24:51 - gobandroid] Dx at java.lang.reflect.Method.invoke(Method.java:616) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:729) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:602) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.resources.Project$1.run(Project.java:618) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.resources.Project.build(Project.java:124) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.ide.eclipse.adt.internal.project.ProjectHelper.build(ProjectHelper.java:869) [2011-10-19 15:24:51 - gobandroid] Dx at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:146) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132) [2011-10-19 15:24:51 - gobandroid] Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [2011-10-19 15:24:51 - gobandroid] Dx 1 error; aborting [2011-10-19 15:24:51 - gobandroid] Conversion to Dalvik format failed with error 1 
+4
source share
4 answers

I had the same problem with a project that contained links to two library projects. For my Fix Project Properties project this did not help. So instead, I opened the project properties and deleted links to the library projects, closed the properties, and then re-added them. I also had to remove the links to the source of these projects, as the transformation seems to have somehow distorted it.

+7
source

"Fix project properties" does not work for me. I tried to close the project, manually edit the .classpath and .project files and remove the references to the library project (from the classpathentry, projects and linkedResources xml elements). Then I reopened the project in Eclipse, added the link to the library project again, and finally worked.

0
source

Unfortunately, I have the same problem.

Since updating ADT / SDK to r14 I can not create my own project either.

I have a simple project that compiles well (sure this is just a shortcut, yehaa \ o /)

But a complex project with: 1 user library 1 linked library

I have this error: Failed to convert Dalvik format: Failed to execute dex: Java heap space

I tried many Eclipse configurations, but without any improvements. I tried installing the SDK from scratch, and Eclipse Indigo + ADT from scratch is also the same pain.

I am really disappointed because there will be a lot in my company, and it is very important for us, and I am very angry with Google, which produces these tools without sufficient tests or documentation **. except: http://developer.android.com/sdk/tools-notes.html

What you can try is to create a new project from scratch and copy src (and res) to.

0
source

All Articles