Maven(命令行):在此环境中未提供编译器 [英] Maven (commandline): No compiler is provided in this environment
本文介绍了Maven(命令行):在此环境中未提供编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Failed to execute goal or.apache.maven.plugins:maven-compiler-plugin:3.1:comple <default-compile> on project google-play-services: Compilation failure
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
这是在Windows中从命令行使用Android SDK Deployer时的结果.我在系统变量中添加了JAVA_HOME
C:\Program Files (x86)\Java\jdk1.7.0_45
.
This is the result when using the Android SDK Deployer from the commandline in Windows. I added JAVA_HOME
C:\Program Files (x86)\Java\jdk1.7.0_45
to my system variables.
我配置了错误的零件吗?
Did I configured the wrong parts?
推荐答案
该问题非常容易解决.我只需要在更改系统变量后重新启动命令行即可.
The problem was very easy to solve. I only had to restart the commandline after changing the system variables.
这篇关于Maven(命令行):在此环境中未提供编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文