关闭

You are attempting to build with the incorrect version of java

492人阅读 评论(0) 收藏 举报
分类:

Ubuntu 12.04  build android source code

 The error:

Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.
 
Your version is: java version "1.6.0_45".
The correct version is: Java SE 1.6.
 
Please follow the machine setup instructions at
    http://source.android.com/source/download.html
************************************************************
build/core/main.mk:145: *** stop.  Stop.

solve:
Commenting out the $(error stop) statement from build/core/main.mk on line 131 will allow compilation to proceed:

    # $(error stop)
    endif


end: make -j4


 Recommended Reference: 

http://blog.markloiseau.com/2012/07/how-to-compile-android-on-ubuntu-12-04/

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:7837次
    • 积分:225
    • 等级:
    • 排名:千里之外
    • 原创:16篇
    • 转载:2篇
    • 译文:0篇
    • 评论:0条
    文章分类