Android Studio 无法初始化类 org.codehaus.groovy.runtime.InvokerHelper [英] Android Studio Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
问题描述
我是 Android Studio 的新手.设置后,当我尝试导入应用程序时,我收到该错误,因此无法构建 gradle.
I am new in Android Studio. After setup, When I am trying to import an application I am getting that error So that gradle not able to build.
错误:无法初始化类 org.codehaus.groovy.runtime.InvokerHelper
我检查了我的 Java 类路径设置是否正常.我正在运行 Windows 操作系统.有谁知道错误的来源?
I checked that my classpath setting for Java is fine. I am running Windows OS. Does anyone know the source of the error?
推荐答案
我遇到这个问题是因为 Jdk 版本较低.之前我安装了 Jdk 1.7 和 Android Studio 1.5.1,我遇到了这个问题.如果您安装 Android Studio 1.5.1 或更高版本,则需要 JDK 1.8
I faced this issue because of lower version of Jdk. Previously I installed Jdk 1.7 and Android Studio 1.5.1, I got this issue. If you install Android Studio 1.5.1 or above JDK 1.8 required
所以安装 JDK 1.8 解决了这个问题.
这篇关于Android Studio 无法初始化类 org.codehaus.groovy.runtime.InvokerHelper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!