出现异常 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 NoClassDefFoundError异常的全部内容,更多相关Kotlin内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复