UNEXPECTED TOP-LEVEL ERROR

最近编译海思4.03的android 源码
 
  
UNEXPECTED TOP-LEVEL ERROR:
https://www.google.com.hk/search?q=UNEXPECTED+TOP-LEVEL+ERROR%3A+make%3A+***+%5Bout%2Ftarget%2Fcommon%2Fobj%2FJAVA_LIBRARIES%2Fframework_intermediates%2Fnoproguard.classes-with-local.dex%5D+Error+1&oq=UNEXPECTED+TOP-LEVEL+ERROR%3A+make%3A+***+%5Bout%2Ftarget%2Fcommon%2Fobj%2FJAVA_LIBRARIES%2Fframework_intermediates%2Fnoproguard.classes-with-local.dex%5D+Error+1&aqs=chrome.0.69i57.16941268j0&sourceid=chrome&ie=UTF-8


这种都是OOM killer的问题,都是内存不足,build的core下的definition.mk没有必要修改。

swap分区我们240上也是有的。


zhangbin@ubuntu:/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012$ free
             total       used       free     shared    buffers     cached
Mem:      66112508   62131656    3980852          0    1512256   47819452
-/+ buffers/cache:   12799948   53312560
Swap:      4305912      91080    4214832
zhangbin@ubuntu:/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012$ 




==================================采用这种方法解决================================

终于成功编译了noproguard.classes-with-local.dex  

采用这样的方法:

zhangbin@ubuntu:/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012$ java -Xms3550M -Xmx3550M -jar out/host/linux-x86/framework/dx.jar  --dex --output=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex  --core-library out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes.jar
zhangbin@ubuntu:/homesec/android2/zhangbin/053work3/hi050src/HiSTBAndroidV400R001C00SPC050B012$ 


参考http://blog.csdn.net/lccly/article/details/7758807



UNEXPECTED TOP-LEVEL ERROR_第1张图片


======================


你可能感兴趣的:(Android)