Kotlin NoClassDefFoundError异常 蔚落 2022-05-27 07:07 228阅读 0赞 出现异常 java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics ![70][] ![70 1][] 网上有人说添加 compile 'com.mapzen:on-the-road:0.8.1 测试会报其他异常或错误 解决办法 ![70 2][] 默认会在 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) 编译正常显示 [70]: /images/20220527/e6c73d40f0e24c1dbff1369d2abd3701.png [70 1]: /images/20220527/1140291de7f44e618af5d59ae318358b.png [70 2]: /images/20220527/d62190f3b24049f39e6c61f93ef19d7f.png
还没有评论,来说两句吧...