无法解析类 org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder [英] unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder

查看:37
本文介绍了无法解析类 org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新 android studio 后收到

并检查您的项目的 build.gradle,更改 gradle 的依赖项,如下所示:

 构建脚本 {存储库{jcenter()}依赖{类路径'com.android.tools.build:gradle:2.3.2'}}

如果以上都不起作用,您可以回滚到以前的 android studio 版本到稳定版本:

在此处选择您想要的版本

I get this error after updating android studio:

Error:Cause: startup failed:
initialization script 'C:\Users\sunny\AppData\Local\Temp\ijinit.gradle': 17: unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
 @ line 17, column 1.
   import org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder

解决方案

CHANGING GRADLE TO LATEST VERSION FIXED THIS PROBLEM

In this case it was changing from 3.3 to 4.0

If you want to see what the latest Gradle version is, have a look here.


Change your gradle version in project setting: If you are using mac - click File->Project structure,then change gradle version (Windows will be similar),here:

And check your build.gradle of project,change dependency of gradle,like this:

    buildscript {
    repositories {
        jcenter()
    }
    dependencies {
    classpath     
    'com.android.tools.build:gradle:2.3.2'
    }
}

If none of the above works you can roll back to previous android studio version to a stable release:

Select the version you want here

这篇关于无法解析类 org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆