美文网首页
Could not find lint-gradle-api.j

Could not find lint-gradle-api.j

作者: lzy2626 | 来源:发表于2018-11-28 16:02 被阅读0次

    我在一个新的电脑上打开之前的项目构建之后出现了这个问题:

    Could not resolve all files for configuration 'classpath'. Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2). Searched in the following locations:https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar

    百度找了好多都没解决问题,最终在stakoverflow找到了解决办法:

    将下面的内容

    maven {
        url 'https://dl.google.com/dl/android/maven2'
    }
    
    

    放到这个的上面

    jcenter()
    
    

    如下,在项目的build.gradle里面

        buildscript {
        repositories {
            maven {
                url 'https://dl.google.com/dl/android/maven2'
            }
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.2'
        }
    }
    
    image.png

    原文:https://stackoverflow.com/questions/52945041/couldnt-locate-lint-gradle-api-26-1-2-jar-for-flutter-project

    相关文章

      网友评论

          本文标题:Could not find lint-gradle-api.j

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