出现异常 java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics


网上有人说添加
compile 'com.mapzen:on-the-road:0.8.1测试会报其他异常或错误
解决办法

默认会在 app build.gradle 添加
dependencies{
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
mavenCentral()
}
然后同步(sync Now)
如果出现
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
将 compile 修改为 implementation
同步(sync Now) 编译正常显示
本文介绍了解决在使用Kotlin时遇到的java.lang.NoClassDefFoundError异常的方法。通过正确配置Gradle依赖项并同步项目,可以有效解决此问题。
3489

被折叠的 条评论
为什么被折叠?



