我试图编译一个旧项目并得到下一个错误:
Kotlin: Cannot access built-in declaration 'kotlin.coroutines.SuspendFunction1'. Ensure that you have a dependency on the Kotlin standard library
我将kotlin stdlib(compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.30"
)和kotlinx核心(compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.3"
)放在依赖项上,但是错误仍然继续。
有人遇到这个问题并设法解决吗?
The project uses:
- kotlinx version = 0.22.3
- kotlin version = 1.2.30
The version of the IntelliJ IDEA is 2019.2.3
The kotlin plugin version is 1.3.50-release-IJ2019.2-1```