Hey guys, wondering if some one can help me out wi...
# android
l
Hey guys, wondering if some one can help me out with this issue I've been facing. Every second run of the app, i get a crash that says
java.lang.NoClassDefFoundError: Failed resolution of: Lin/blahapp/xxx/BlahUtil
( BlahUtil is a kotlin object with @JvmStatic annotations in it) . Could it have anything to do with our package name (
in.blahapp
) ,
in
being a kotlin keyword ? I see an
L
in the stacktrace before the
in
. Also, we use multidex 1.0.1. I am on
android studio 2.1.2
and using
kotlin 1.0.3
, ``. Using JDK 7,
Copy code
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
        minSdkVersion 16
        targetSdkVersion 23
}
dexOptions {
        incremental true
        dexInProcess true
        javaMaxHeapSize "10g"
        preDexLibraries true
}
buildscript {
    ext.kotlin_version = '1.0.3'

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
apply plugin: 'kotlin-android'
dependencies {
  compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
Posted on stack overflow: http://stackoverflow.com/questions/38691131/android-kotlin-java-lang-noclassdeffounderror-failed-resolution-of-kotlinob Logcat: https://gist.github.com/letronje/89990a0d705ceaf46d992db2352cb8dc