我正在尝试编译我的android项目,我似乎无法通过此错误:
-dex: [回声] [echo]转换编译文件和外部库 进入K:\ bin \ classes.dex ... [回声] [应用] [申请]意外的顶级例外情况: [apply] com.android.dx.util.ExceptionWithContext [apply] at com.android.dx.util.ExceptionWithContext.withContext(Exceptio nWithContext.java:46) [apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslato r.java:340) [apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.ja VA:131) [apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.jav 一:85) [apply] at com.android.dx.command.dexer.Main.processClass(Main.java:336)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:
315) [apply] at com.android.dx.command.dexer.Main.access $ 100(Main.java:56) [apply] at com.android.dx.command.dexer.Main $ 1.processFileBytes(Main.jav 一:266) [apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(Class PathOpener.java:244) [apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPath Opener.java:130) [apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpe ner.java:108) [apply] at com.android.dx.command.dexer.Main.processOne(Main.java:284) [apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:2 20) [apply] at com.android.dx.command.dexer.Main.run(Main.java:176) [apply] at com.android.dx.command.dexer.Main.main(Main.java:157) [apply] at com.android.dx.command.Main.main(Main.java:89) [apply]引起:java.lang.NullPointerException [apply] at com.android.dx.cf.code.ConcreteMethod。(ConcreteMethod.j AVA:84) [apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslato r.java:243) [申请] ......还有14个 [apply] ... while processing()V [apply] ...在处理com / google / android / apps / analytics / AnalyticsRecei时 ver.class [应用] [apply] 1错误;中止
BUILD FAILED K:\ build.xml:343:The 发生以下错误 执行此行:K:\ build.xml:205: 申请退回:1
我认为它与使用AnalyticsReceiver.jar lib有关。但我知道我的代码是有效的,因为我用Eclipse
成功编译了它任何想法?
答案 0 :(得分:2)
通过从Libs文件夹中删除libGoogleAnalytics-interface.jar
来解决此问题