Update Android Studio Project to Kotlin 1.3

最后都变了- 提交于 2019-11-27 19:38:37

问题


I am attempting to Use Kotlin Coroutine's runBlocking function, but I receive the error that this method was introduced in Kotlin 1.3.

So, I tried updating my Android Studio project to use Kotlin 1.3.0

But, when I do that, I get the error: "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.0" is unresolved...

What is the recommended way to update my Android Studio project to use Kotlin 1.3? Or is there another method similar to runBlocking that is compatible with Kotlin 1.2.51?


回答1:


I guess it has different version. Try to use:

implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.0'



来源:https://stackoverflow.com/questions/53306434/update-android-studio-project-to-kotlin-1-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!