Error while importing projects

前端 未结 3 1685
情深已故
情深已故 2020-12-31 06:24

While importing projects into eclipse i have this error:

Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured y

3条回答
  •  庸人自扰
    2020-12-31 07:02

    I got the same message while trying to build a project in Android Studio. After hours of research, trying different versions of JDK (from 8 to 6) I found this answer that fixed my problem: https://discuss.gradle.org/t/mac-gradle-issues-with-finding-using-jdk-7-the-usual-answers-to-this-question-arent-working-expert-required/2553/24

    The reason was that the AUSKey package installed a tools.jar in /Library/Java/Extensions directory that derailed Gradle looking for the compiler. Removing that file fixed the problem and I can now build in Android Studio.

提交回复
热议问题