以前にも紹介したが、また同類のエラーが発生したので備忘録
新規プロジェクトをKotlinで作成すると、以下のエラーが出てビルドできなくなった。
新規プロジェクトをKotlinで作成すると、以下のエラーが出てビルドできなくなった。
- A problem occurred configuring root project 'My Application'.
- > Could not resolve all artifacts for configuration ':classpath'.
- > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10-release-894.
- Searched in the following locations:
- - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.10-release-894/kotlin-gradle-plugin-1.5.10-release-894.pom
- - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.10-release-894/kotlin-gradle-plugin-1.5.10-release-894.pom
- Required by:
- project :
- Possible solution:
- - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
どうやらkotlinのプラグイン「1.5.10-release-894」が見つからないらしい。。
解決策
project/build.gradleで指定しているKotilnのバージョンを
「1.5.10-release-894」から「1.5.10」に変更してやれば解決する。
「1.5.10-release-894」から「1.5.10」に変更してやれば解決する。
解決後、
別件のGradleエラーが出てたのでそちらの解決法はこっち
0 件のコメント:
コメントを投稿