0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Kotlin > java.lang.ExceptionInInitializerError と表示されたとき

Last updated at Posted at 2021-08-07
Build file '/Users/atsu/Downloads/container--ktor-test-master/build.gradle' line: 13

A problem occurred evaluating root project 'ktor-test'.
> java.lang.ExceptionInInitializerError (no error message)

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

IDEが示す対象箇所は以下

kotlin_version = '1.2.61'

apply plugin: 'kotlin' ←ココ

stackoverflowで解決策が明示されてました。

javascript - Kotlin gradle Could not initialize class class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt - Stack Overflow

Solved this issue by setting the latest Kotlin version (1.3.72) in build.gradle file.

ということで、Kotlinのバージョンを上げたら解決しました。

kotlin_version = '1.2.61'
 ↓
kotlin_version = '1.5.20'

バージョンは時々見直しておく必要がありますね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?