在ubuntu 14.04中构建android AOSP 4.2.2会出错

时间:2015-05-26 11:06:04

标签: android android-source

我尝试在Android父网站" https://source.android.com/source/building-running.html"之后构建AOSP。

步骤:
a)source build / envsetup.sh
b)午餐
c)我选择了#34; full-eng"
d)然后制作-j4
我也配置了cchache。我也得到了switch.pm的一些错误,然后我也解决了它,但是在这个错误之后我没有得到任何东西。我可以在out文件夹中看到userdata.img和ramdisk.img文件。我没有看到system.img文件。 它会抛出这个错误。我错过了任何其他的,让我知道。

我收到了这个错误:

UNEXPECTED TOP-LEVEL EXCEPTION:

com.android.dx.util.ExceptionWithContext: Index: 1, Size: 2
at com.android.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:344)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
at com.android.dx.command.dexer.Main.processClass(Main.java:487)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
at com.android.dx.command.dexer.Main.access$400(Main.java:67)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:422)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
at com.android.dx.command.dexer.Main.run(Main.java:209)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 2
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.remove(ArrayList.java:387)
at com.android.dx.ssa.Dominators.compress(Dominators.java:136)
at com.android.dx.ssa.Dominators.eval(Dominators.java:160)
at com.android.dx.ssa.Dominators.run(Dominators.java:229)
at com.android.dx.ssa.Dominators.make(Dominators.java:90)
at com.android.dx.ssa.DomFront.run(DomFront.java:90)
at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:298)
at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:52)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:99)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:73)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:273)
... 14 more
...while processing onQueryComplete (ILjava/lang/Object;Lcom/android/internal/telephony/CallerInfo;)V
...while processing com/android/phone/CallNotifier.class

我在这里缺少什么?请帮助我,因为我无法继续进行这种状态。

环境:

Linux Ubuntu 14.04

JDK 1.6.0

4.2.2的AOSP分支

0 个答案:

没有答案