[英]Gradle won't run in Android Studio
我在 Android Studio 上使用 Gradle 时遇到问题。 I'm doing my final degree project and I received an application made in Android Studio, I have instructions to run it in Java 8, using Android Gradle Plugin Version 3.3.0 and Gradle Version 4.10.1, apparently these are values that they don不想让我改变。
我在构建项目时收到的错误消息是:“原因:com/android/tools/idea/gradle/run/OutputBuildAction 已由更新版本的 Java 运行时(类文件版本 55.0)编译,此版本的Java 运行时仅识别 class 文件版本高达 52.0"。
From what I understand the project is being compiled using Java 11 and trying to run using Java 8. To fix this problem I have gone to Project Structure, Gradle Settings and selected Gradle JDK version 1.8. I have also tried building the program on Windows, Ubuntu, having only Java 8 or Java 11 installed on my computer, changing the JAVA_HOME environmental variable, but nothing works.
如果我的解释不是很好,我很抱歉,英语不是我的母语,我是 Android Studio 和 Gradle 的新手。 我会给你任何你认为方便解决问题的信息,谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.