You are attempting to build with the incorrect version of java.
来源:互联网 发布:mp3剪辑软件 编辑:程序博客网 时间:2024/05/16 10:40
Checking build tools versions...************************************************************You are attempting to build with the incorrect versionof java. Your version is: java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, 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:171: *** stop. Stop.#### make failed to build some targets (14 seconds) ####
报错信息很明确 目标需要的是jdk 1.7.x 的jdk软件版本。而你的JDK软件版本是1.8.0_111。不满足编译条件。
那就得下载一个JDK1.7.X的软件版本了 下载之后把版本的路径放在 etc/profile 里面加入到PATH 里面。
sudo gedit /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
编辑之后保存 也可以通过下面的命令保存一下
source /etc/profile
这些步骤都走完 你可以验证一下目前你的系统JDK的版本
java -version
0 0
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java
- You are attempting to build with the incorrect version of java.
- You are attempting to build with an unsupported JDK.
- INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid clust
- You are attempting to build on a 32-bit system.Only 64-bit build environments are supported beyond froyo/2.2.
- You are attempting to build on a 32-bit system.Only 64-bit build environments are supported beyond froyo/2.2.
- You are attempting to build on a 32-bit system.Only 64-bit build environments are supported beyond froyo/2.2.
- You are attempting to build on a 32-bit system.Only 64-bit build environments are supported beyond f
- build/core/main.mk:77: You are attempting to build on a 32-bit system. Only 64-bit build environment
- You are using version 6.4.1 of the AdMob SDK which is non-compliant with the Google Play Ad Policy
- Server Application Unavailable (The web application you are attempting to access on this ..
- Server Application Unavailable --The web application you are attempting to access on this web server
- CodeIgniter “The filetype you are attempting to upload is not allowed.”解决
- 兔子-you are attempting to install the android sdk inside your android studio installation
- 兔子-you are attempting to install the android sdk inside your android studio installation
- you are attempting to install the android sdk inside your android studio installation
- 机器人操作系统ROS Indigo 入门学习(18)——ROS wiki导航
- 推断性统计部分(二)---参数估计
- 堆栈
- 关于node.js的学习07
- int main(int argc,char* argv[])详解
- You are attempting to build with the incorrect version of java.
- wireshark抓包常见提示含义解析
- cell根据文本长度来自动调整cell高度
- Spring入门学习之Spring MVC(part 1)
- 老生常谈--设计模式
- 机器人操作系统ROS Indigo 入门学习(19)——接下来做什么
- rapidPHP 下载并安装
- ecshop 分页原理
- UITextField总结