Hey, Error:Error converting bytecode to dex: Cau...
# android
d
Hey, Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file. without any submodules AS 2.3.3 kotlin 1.1.3 android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { ... } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } sourceSets { main.java.srcDirs += 'src/main/kotlin' } }