在gradle sync时遇到问题 - 找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api:26.1.2) [英] Facing the issue while gradle sync - Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2)

查看:1258
本文介绍了在gradle sync时遇到问题 - 找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api:26.1.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Android Studio更新为3.2.1,现在停止了这个问题:
找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api: 26.1.2)。
在以下位置搜索:

解决方案

过去几天发生了很多类似的问题,这可以通过在构建脚本的存储库块的第一个位置添加 google()存储库来解决。
请参阅以下答案中的详细说明:





与Jcenter中缺少库相关的根本原因在此处详细说明: https://stackoverflow.com/a/50885939/ 6899896



注意请参阅 https://stackoverflow.com/a/52947028/6899896 :您需要修改。 flutter / packages / flutter_tools / gradle / flutter.gradle以及项目的构建脚本(模块和组件)应用程序级别)首先设置repo google(),最后设置jcenter()


I have updated Android Studio to 3.2.1 and now stoped on point with such issue: 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

I have tried to reorder my build.gradle file. Still, you can find the attachment here.

I have tried all the solutions.

I know this question has duplicates but their solution is not working.

解决方案

There were lots of similar issues raised the past days, that could be solved by adding the google() repository in first position in the repositories block of the build scripts. See detailed explanation in the following answers:

The root cause , related to missing libraries in Jcenter, is explained in detail here : https://stackoverflow.com/a/50885939/6899896

Note see https://stackoverflow.com/a/52947028/6899896 : you need to modify .flutter/packages/flutter_tools/gradle/flutter.gradle in addition to your project's build scripts (module & app levels) to set repo google() first and jcenter() last

这篇关于在gradle sync时遇到问题 - 找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api:26.1.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆