Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problems building with ADT r14

Tags:

android

adt

just updated the SDK and the ADT after it was released with the ICS announcement - but having some problems building my projects - even after cleaning/refreshing/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
like image 760
ligi Avatar asked Jan 19 '23 11:01

ligi


1 Answers

I had the same problem with a project that contained references to two Library Projects. For mine the Fix Project Properties didn't help. So instead I opened up the project properties and removed the references to the Library Projects, closed the properties, and then re-added them. I also had to remove the links to the source of those projects as the conversion seemed to munge it in some way.

like image 190
Kenny Avatar answered Jan 28 '23 05:01

Kenny