【发布时间】:2018-02-25 22:29:58
【问题描述】:
我在 Windows 上运行 android studio,之前从未使用过 maven。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project maven-model: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
【问题讨论】:
-
那么,您是在 JRE 而不是 JDK 上运行吗?检查您的 Java 安装。
-
将
JAVA_HOME环境变量设置为你的JDK安装,然后再次运行你的maven命令