美文网首页
Android 关于ButterKnife时,出现了未知错误

Android 关于ButterKnife时,出现了未知错误

作者: 周蛋蛋 | 来源:发表于2020-04-26 18:01 被阅读0次

    今天在使用Butterknife的时候,在builder.gradle中出现了未知错误;

    、Error: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)](https://blog.csdn.net/ytfunnysite/article/details/syncProject)
    *   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)](https://blog.csdn.net/ytfunnysite/article/details/stopGradleDaemons)
    *   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.
    

    判断是gradle的版本和插件不兼容问题导致的,因为使用最新的butterknife10.2.1导致的,将版本降为10.0.0就好了

    相关文章

      网友评论

          本文标题:Android 关于ButterKnife时,出现了未知错误

          本文链接:https://www.haomeiwen.com/subject/sbujwhtx.html