couldn't locate lint-gradle-api-26.1.2.jar for flutter project
Posted zty_Love
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了couldn't locate lint-gradle-api-26.1.2.jar for flutter project相关的知识,希望对你有一定的参考价值。
Could not find com.android.tools.lint:lint-gradle:26.1.2 当我尝试构建发行版本APK 时导致报这种错误,无法发行,针对自己的项目作出了相关修改,
即在顶级的build.gradle 添加google()存储库,将Google()添加到repositories下buildscript和allprojects,注意上下两者的顺序要一致,先前没注意先后顺序,导致一直不行。
如下:
buildscript { repositories { google() jcenter()//上下两者先后顺序要一致 上 } dependencies { classpath ‘com.android.tools.build:gradle:3.1.2‘ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter()//上下两者先后顺序要一致 下
} }
添加后即可发行版本!
以上是关于couldn't locate lint-gradle-api-26.1.2.jar for flutter project的主要内容,如果未能解决你的问题,请参考以下文章
Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, g
解决Warning Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get fil
quartz报错 Couldn't retrieve job because the BLOB couldn't be deserialized: null
[tomcat] couldn't get host name 解决