我在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?
答案 0 :(得分:0)
看起来你正在尝试编译,Java编译器是JDK的一部分。因此,请检查您的Java安装并使用JDK的路径替换JRE的路径,这应解决上述错误。
此链接中有关JRE和JDK之间差异的其他详细信息:What is the difference between JDK and JRE?