Ant UNEXPECTED TOP-LEVEL EXCEPTION compile time exception

The new advice! Recently set up a continuous integration system, using hudson+SVN+ant combination, when the construction of the project, in the execution of the ant script to the DEX label, the following error:

dex:
[echo] Converting compiled files and external libraries into bin/classes.dex...
[apply]
[apply] UNEXPECTED TOP-LEVEL EXCEPTION:
[apply] com.android.dex.util.ExceptionWithContext
[apply] at com.android.dex.util.ExceptionWithContext.withContext(ExceptionWithContext.java:45)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:377)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:682)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
[apply] at com.android.dx.command.dexer.Main.access(Main.java:78)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:572)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:596)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
[apply] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:230)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:199)
[apply] at com.android.dx.command.Main.main(Main.java:103)
[apply] Caused by: java.lang.NullPointerException
[apply] at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:87)
[apply] at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:75)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:277)
[apply] ... 16 more
[apply] ...while processing run ()V
[apply] ...while.class


I succeeded in two days after construction, back after a weekend has been such a failure, during my stay in Hudson bread of a Tomcat shell, no other modifications.
Because learning Android also soon, this problem has troubled me for a long time, find great help, online etc.. Thank you

Started by Amy at December 20, 2016 - 9:43 AM

Push yourself master for help

Posted by Amy at December 25, 2016 - 10:42 AM