android - 未找到 Kotlin 插件
问题描述
我已经从 Github 克隆了 android mapbox 地图。在这里找到:
开箱即用,我收到以下我无法解决的错误:
构建文件 'C:\Development\mapbox-maps-android\mapbox-lint\build.gradle' 行:3
在以下任何来源中都找不到插件 [id: 'kotlin']:
尝试:使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
例外是:org.gradle.api.plugins.UnknownPluginException:插件 [id: 'kotlin'] 未在以下任何来源中找到:
- Gradle 核心插件(不是核心插件,请参阅https://docs.gradle.org/6.5/userguide/standard_plugins.html获取可用的核心插件)
- 插件存储库(插件依赖项必须包含此源的版本号)
所有文件都与 Github 存储库中当前的文件相同。
构建.Gradle:
plugins {
id 'java-library'
id 'kotlin'
id 'com.android.lint'
}
lintOptions {
htmlReport true
htmlOutput file("lint-report.html")
textReport true
absolutePaths false
ignoreTestSources true
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
compileOnly(Dependencies.lintApi)
compileOnly(Dependencies.lintChecks)
compileOnly(Dependencies.kotlin)
testImplementation(Dependencies.junit)
testImplementation(Dependencies.lint)
testImplementation(Dependencies.lintTests)
testImplementation(Dependencies.testUtils)
}
project.apply {
from("$rootDir/gradle/ktlint.gradle")
}
解决方案
推荐阅读
- react-native - 如何在反应导航中隐藏标题?
- python - 删除空行后 Pandas 的数据框变为空
- firebase - 应用启动时 Firestore onSnapshot 未获取初始值
- lua - 是否可以对这串混淆的 Lua 代码进行反混淆?
- python - PyQt5 QUrl 在 QUrl.setUrl 之后为空
- reactjs - React Navigation 中的空白屏幕。反应原生
- bash - 为什么qrencode无法生成PNG图片
- javascript - 使用 Koa 和 Next JS 在本地开发 Shopify 应用程序时绕过 Shopify 身份验证?
- python - Docker 的 SSL 证书错误 - Flask 应用程序
- c - C:如何清除一定数量的位?