Could|Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2)
我在一个新的电脑上打开之前的项目构建之后出现了这个问题:
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 【Could|Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2)】原文:https://stackoverflow.com/questions/52945041/couldnt-locate-lint-gradle-api-26-1-2-jar-for-flutter-project
推荐阅读
- (If)|(If) 404 Not Found
- cannot|cannot be read or is not a valid ZIP file
- nottodo,别做什么比计划做什么更重要
- 由Uncaught|由Uncaught TypeError: this.player.startMoveAt is not a function引申
- 运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
- iOS【NotificationContent-App|iOS【NotificationContent-App Group共享】
- Android|Android Notification
- Android|Android O 8.0及其以上系统的通知(Notification)、安装apk问题更新后的简单兼容写法
- 文件解压缩及搜索文件find
- weex|weex run ios 报错 /bin/sh: pod: command not found 解决方案