android 中phoneGap问题
今天在学习pnoneGap是出现下列的问题,真不知道哪里出了问题了,请大家帮忙看看啊!!
[2012-02-01 11:31:21 - PhoneGapApp1] Dx
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/phonegap/AccelListener;
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.processClass(Main.java:486)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.processOne(Main.java:418)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.dx.command.dexer.Main.run(Main.java:206)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at java.lang.reflect.Method.invoke(Unknown Source)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:729)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:602)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:280)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:361)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.resources.Project$1.run(Project.java:523)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:502)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.resources.Project.build(Project.java:102)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.ide.eclipse.adt.internal.project.ProjectHelper.build(ProjectHelper.java:869)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:146)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[2012-02-01 11:31:21 - PhoneGapApp1] Dx 1 error; aborting
[2012-02-01 11:31:21 - PhoneGapApp1] Conversion to Dalvik format failed with error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我也遇到该问题,楼主不知解决了没有,可否共享?
Conversion to Dalvik format failed with error 1
这个是错误源,不知是首次生成并运行就出错么?如果之前有正确过,可以试一下Clean 再重新build。
之前简单的试用过PhoneGap,没有遇到过这种问题。
今天刚刚听说了PhoneMap,还不清楚是用来干嘛的。