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屋!