Hi,

I run the below command 
make clobber

while following this guide
https://source.android.com/source/building.html#obtaining-proprietary-binaries

and I am getting below error:-

Checking build tools versions...

************************************************************

You are attempting to build with the incorrect version

of java.

 

Your version is: java version "1.8.0_71".

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:131: *** stop.  Stop.



On Saturday, May 30, 2015 at 11:22:19 AM UTC-4, [email protected] wrote:
>
> HI ,
>     I download the android source 5.1.1,
>     and install the openjdk-7-jdk,
>     and install required packages(Ubuntu 14.04),
>     when i use the command 'make' to build the source code ,
>     it show the error like below:
>
> ============================================
> Checking build tools versions...
> ************************************************************
> You are attempting to build with the incorrect version
> of java.
>  
> Your version is: Picked up JAVA_TOOL_OPTIONS: 
> -javaagent:/usr/share/java/jayatanaag.jar  java version "1.7.0_79" OpenJDK 
> Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1) OpenJDK 64-Bit 
> Server VM (build 24.79-b02, mixed mode).
> The required version is: "1.7.x"
>  
> Please follow the machine setup instructions at
>     https://source.android.com/source/initializing.html
> ************************************************************
> build/core/main.mk:167: *** stop.  Stop.
>
> #### make failed to build some targets (18 seconds) ####
>
> root@ubuntu:~/android_src/my_android_src# java -version
> Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
>
>
>
>
> my system is ubuntu15.04 run under vmware fusion ,and the openjdk version 
> is "1.7.0_79" 
> somebody know how to handle this problem?
>
> thank you !
>  
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to