Building Source code AOSP 4.2.2 gives error

71 views
Skip to first unread message

prasenjit singh

unread,
May 26, 2015, 12:15:14 PM5/26/15
to android-...@googlegroups.com
I followed the same commands to reach till here.

Details :
------------------------------------
JDK1.6.0
AOSP 4.2.2 
------------------------------------
Steps I did :
------------------------------------
1 ) source build/envsetup.sh
2 ) lunch full-eng
3 ) make -j4 (I have 4GB RAM with quadcore)

------------------------------------

What else I need to get it done? Am I missing something?
--------
error :
--------
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

1 error; aborting
make: *** [out/target/common/obj/APPS/Phone_intermediates/noproguard.classes-with-local.dex] Error 1
make: *** Waiting for unfinished jobs....

Help me to sort out this issue.

Andrew Reiter

unread,
May 26, 2015, 1:37:59 PM5/26/15
to android-...@googlegroups.com
I have had make –j4 crash on me… try just make with no –j and see if it will work.. Will take tiny bit longer. If you need to rebuild source often, then use “ccache” described in Android docs

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

prasenjit singh

unread,
May 27, 2015, 8:05:06 AM5/27/15
to android-...@googlegroups.com
I tried without that as well. Did not worked for me. I tried with different version of JDK as well. Nothing worked. Seems like some deprecated method throwing this. All time I get some similar message.

"@deprecated tag with no explanatory comment"

Any other option other then downloading another tree and try to compile again?

Thanks & Regards,
Prasenjit
To post to this group, send email to android...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages