Error:Unable to load class 'org.gradle.api.internal.component.Usage'.

Android Studio从2.3升级到3.0后,出现了这个错误

Unable to load class 'org.gradle.api.internal.component.Usage'.

Possible causes for this unexpected error include:

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

如图:


后来发现是升级Android Studio 3.0后,gradle需要用4.1以上的版本,如图:
而4.1以上的gradle需要novoda:bintray的版本至少0.5.0以上,所以,把novoda:bintray版本如图改为0.5.0以上就好:
碎碎念:如果有用,给个喜欢

更多问题加群:584275290

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,977评论 0 23
  • 成为一只开心的兔子 当你尝试进步的时候, 你遇到的更可能是打击而不是鼓励 如果你真的没有什么目标的话 ,那也没关系...
    Jfchris阅读 466评论 0 1
  • 昨天上午不用上课,我带着孩子一路走,一路玩,到了看书的地方,停下脚步,看了四十多分钟,然后就去找卿的女儿,到了她家...
    郑娇英阅读 168评论 0 0
  • 闭包 定义「一个函数」+「访问到的外部变量」= 闭包 作用创建内部变量,既不能被外部随意修改,又可以通过指定的函数...
    jrg_memo阅读 534评论 0 0