Could not resolve com.android.tools.lint:lint-kotlin:26.2.0.
好久没有使用weexplus publish android 打包apk, 今一运行失败了,提示Could not resolve com.android.tools.lint:lint-kotlin:26.2.0.
错误日志:
Download https://maven.google.com/com/android/tools/lint/lint-checks/26.2.0/lint-checks-26.2.0.pom
Download https://maven.google.com/com/android/tools/lint/lint-api/26.2.0/lint-api-26.2.0.pom
:farwolf:extractReleaseAnnotations FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
137 actionable tasks: 11 executed, 126 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':farwolf:lintClassPath'.
> Could not resolve com.android.tools.lint:lint-kotlin:26.2.0.
Required by:
project :farwolf > com.android.tools.lint:lint-gradle:26.2.0 > com.android.tools.lint:lint:26.2.0
project :farwolf > com.android.tools.lint:lint-gradle:26.2.0 > com.android.tools.lint:lint:26.2.0 > com.android.tools.lint:lint-checks:26.2.0 > com.android.tools.lint:lint-api:26.2.0
> Could not resolve com.android.tools.lint:lint-kotlin:26.2.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-kotlin/26.2.0/lint-kotlin-26.2.0.jar'.
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/lint/lint-kotlin/26.2.0/lint-kotlin-26.2.0.jar'.
> Read timed out
> Could not resolve com.google.errorprone:error_prone_annotations:2.0.18.
Required by:
project :farwolf > com.android.tools.lint:lint-gradle:26.2.0 > com.android.tools.lint:lint:26.2.0 > com.google.guava:guava:23.0
> Skipped due to earlier error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
看这个提示就知道是Could not resolve com.android.tools.lint:lint-kotlin:26.2.0. 错误了,于是我顺着这个找了半天,gradle也去逛了半天没结果
也有朋友

说这么干,但是我没还是没整对…
最后用as将项目目录下platforms\android下对应的项目导入(我这是portal-app\platforms\android\portal-app), 然后File>Sync Project with Gradle Files 跑maven去download 半天在那里,最后看到了run tasks success

好了这次再回到cmd中去weexplus publish android

终于看到了久违的 BUILD SUCCESSFUL
经过上面折腾初步断定是由于Download https://maven.google.com/com/android/tools/lint/lint-api/26.2.0/lint-api-26.2.0.pom 失败而引起的依赖丢失,build failed
而经过多次cmd build尝试,觉得cmd 中直接到google download 还是不如as 有威力呀,as 直接一次就download好了所有,而cmd 中总是会有超时。
ok 搞定,记录,避免下次遇到有不知从何着手
其他请参考weexplus build官网
Could not resolve com.android.tools.lint:lint-kotlin:26.2.0.的更多相关文章
- Android APP打包错误,Could not resolve com.android.tools.lint:lint-gradle:26.1.2.
1.Please select the product flavors to build and sign 不专业的翻译一下(请选择产品的味道来制作和签名)什么鬼: 选中Flavors中的选项即可: ...
- [部署日记]Android Studio在同步Gradle的时候提示Could not resolve com.android.tools.build:gradle:7.0.4
一波未平一波又起,好家伙直呼好家伙. 问题来源: 在想好APP起什么名字,放哪里后,打开模拟器准备着手处理时发现, Gradle sync出问题了... "Build"窗口提示: ...
- 解决 Could not resolve com.android.tools.build:gradle:3.1.3
android studio 升级到3.1.3后总会遇到莫名其妙的错误,前几天刚解决了项目 dependencies报错的问题. 解决android studio 升级到3.0+之后 项目 dep ...
- Flutter新手第一个坑:Could not find com.android.tools.lint:lint-gradle:26.1.1.
解决方法1:修改build.gradle,注释掉jcenter(),google().使用阿里的镜像.原因是jcenter google库无法访问到导致的问题.虽然我有万能的爬墙工具,开启全局代理依然 ...
- Android ------ 美团的Lint代码检查实践
概述 Lint是Google提供的Android静态代码检查工具,可以扫描并发现代码中潜在的问题,提醒开发人员及早修正,提高代码质量.除了Android原生提供的几百个Lint规则,还可以开发自定义L ...
- Could not find com.android.tools.build:gradle:1.3.0.
* What went wrong: A problem occurred configuring project ':TZYJ_Android'.> Could not re ...
- Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2约束布局constraint-layout导入失败的解决方案
运行demo提示错误: Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2 ...
- 解决 Could not find com.android.tools.build:gradle 问题
今天拉同事最新的代码,编译时老是报如下错误: Error:Could not find com.android.tools.build:gradle:2.2.0.Searched in the fol ...
- Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools>Fix project Properties.
重装操作系统之后,或者破坏了Android的开发环境之后,需要重新配置好Android的开发环境.但是配置好后,导入原有的项目时,报错: Android requires compiler compl ...
- Failed to apply plugin [id 'com.android.application'] 和 Could not find com.android.tools.build:gradle:2.XX的最正确的解决方法
发现android studio是真的可爱啊,上一秒还没问题可以build运行,下一秒就出错...好,你任性,你牛逼.. 说下今天又遇到的两个问题:Failed to apply plugin [id ...
随机推荐
- 关于wx.panel中添加wx.button按钮无显示问题记录
本次出现按钮不显示的原因为pos坐标理解出错: 1.按钮之所没有出现,是因为将全局坐标作为按钮pos的定位,导致在有限的panel布局内无法显示出按钮: 2.经过调试发现当pos=(-1,-1)时,按 ...
- 组合构造和对应的OGF/EGF Dictionary 备查
目录 Constructions Cycle Multiset construction Powerset construction Admissible unlabelled constructio ...
- Python3.10 的开发环境的搭建
安装 下载 Python3.10 或者其他版本:Download Python | Python.org 如果 Windows 操作系统下载,默认是下载 64 位操作系统的 exe 安装包:pytho ...
- 本地Navicat无法连接服务器mysql8.0
本地Navicat无法连接服务器mysql8.0 原因: mysql未开启远程连接权限 navivat与mysql密码加密不一致,需一致加密规则 允许远程连接 use msyql; // 1.先查询 ...
- 导致sql注入的根本原因
导致sql注入的根本原因 1.sql注入的定义 SQL注入即是指web应用程序对用户输入数据的合法性没有判断或过滤不严,攻击者可以在web应用程序中事先定义好的查询语句的结尾上添加额外的SQL语句,在 ...
- Chrome浏览器插件 Undo Close Tab (恢复关掉的标签页)
背景 如果您经常使用Chrome浏览器,也许有时候会意外关闭一个标签页,从而丢失您正在查看的内容.这时您可能会感到非常烦恼,并希望能够迅速找回这个标签页.当然,您可以通过点击浏览器历史记录中的条目来找 ...
- python实现微信自动发消息功能
import timeimport uiautomation as autofrom uiautomation.uiautomation import Bitmapimport win32clipbo ...
- [云计算]杂谈:SaaS与PaaS的产品经理,做产品设计时有什么区别?[摘]
本文摘自: 郝雨彤@碧岸久 于 2022-09-20在社交平台中所表达的观点. 产品性质/类型 服务领域 服务对象(受众) 核心能力 SaaS 面向具体业务 (所属行业的)业务用户 很看重对业务的理解 ...
- [Linux]Xmanager+Xshell远程管理桌面版CentOS物理服务器的桌面版CentOS虚拟机
1 需求/背景 在项目现场有这么一个情况,有1台Gnome版的CentOS的物理服务器,其内运行了2台通过vmware安装的Gnome桌面版的CentOS的虚拟服务器. 按照常规做法是: 将唯一的1台 ...
- 四月十六号java基础知识
1.如果没有一个机制来限制对类中成员的访问,则很可能会造成错误的输入如果在类的成员声明前面加上修饰符private,则无法从类的外部访问到该类内部的成员,而只能被该类自身访问和修改,而不能被任何其他类 ...