为什么?需要知道原因.创建项目时将显示控制台.
Android应用程序.当我尝试构建应用程序时,控制台中会显示此错误.任何人都知道该修复程序,请帮忙.而主要的一点是,它仅针对一个项目显示所有其他项目均正常运行.我认为这是“ AndroID Build Tools”的问题
UNEXPECTED top-LEVEL EXCEPTION:java.lang.NullPointerException at com.androID.dx.util.ByteArray.<init>(ByteArray.java:76) at com.androID.dx.cf.direct.DirectClassfile.<init>(DirectClassfile.java:206) at com.androID.dx.command.dexer.Main.processClass(Main.java:661) at com.androID.dx.command.dexer.Main.processfileBytes(Main.java:634) at com.androID.dx.command.dexer.Main.access0(Main.java:78) at com.androID.dx.command.dexer.Main.processfileBytes(Main.java:572) at com.androID.dx.cf.direct.ClasspathOpener.processArchive(ClasspathOpener.java:284) at com.androID.dx.cf.direct.ClasspathOpener.processOne(ClasspathOpener.java:166) at com.androID.dx.cf.direct.ClasspathOpener.process(ClasspathOpener.java:144) at com.androID.dx.command.dexer.Main.processOne(Main.java:596) at com.androID.dx.command.dexer.Main.processAllfiles(Main.java:498) at com.androID.dx.command.dexer.Main.runMonoDex(Main.java:264) at com.androID.dx.command.dexer.Main.run(Main.java:230) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.androID.IDe.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:187) at com.androID.IDe.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:786) at com.androID.IDe.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:597) at org.eclipse.core.internal.events.BuildManager.run(BuildManager.java:726) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396) at org.eclipse.core.internal.resources.Project.run(Project.java:618) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597) at org.eclipse.core.internal.resources.Project.build(Project.java:124) at com.androID.IDe.eclipse.adt.internal.project.ProjectHelper.doFullincrementalDeBUGBuild(ProjectHelper.java:1143) at com.androID.IDe.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:155) at org.eclipse.deBUG.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855) at org.eclipse.deBUG.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704) at org.eclipse.deBUG.internal.ui.DeBUGUIPlugin.buildAndLaunch(DeBUGUIPlugin.java:1047) at org.eclipse.deBUG.internal.ui.DeBUGUIPlugin.run(DeBUGUIPlugin.java:1251) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)[2014-03-11 10:34:21 - User] Dx 1 error; aborting[2014-03-11 10:34:21 - User] Conversion to Dalvik format Failed with error 1
解决方法:
这解决了我的问题.当我尝试构建最新项目时,这发生在我身上.解决方案很简单,但是……很奇怪.只需使用AndroID SDK Manager删除所有较新的AndroID SDK构建工具(即19),直到版本18.1.1.重新启动Eclipse.它将起作用.如果没有,请尝试添加支持库(在Eclipse中右键单击您的AndroID项目,依次选择“ AndroID工具”,“添加支持库”)
https://stackoverflow.com/questions/22316924/why-need-to-know-the-reason-console-shows-when-building-the-project
总结以上是内存溢出为你收集整理的Java-Android APK构建错误.显示一个有趣的错误全部内容,希望文章能够帮你解决Java-Android APK构建错误.显示一个有趣的错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)