I think multiple implementations may be in your cl...
# android
s
I think multiple implementations may be in your classpath.
j
This is in my common module: dependencies { compile "org.jetbrains.kotlinkotlin stdlib$kotlin_version" compile "org.jetbrains.kotlinkotlin reflect$kotlin_version" implementation "org.jetbrains.kotlinkotlin stdlib common$kotlin_version" testCompile "org.jetbrains.kotlinkotlin test annotations common$kotlin_version" testCompile "org.jetbrains.kotlinkotlin test common$kotlin_version" }`
This is in my Android module: dependencies { expectedBy project(':common') compile "org.jetbrains.kotlinkotlin stdlib$kotlin_version" compile "org.jetbrains.kotlinkotlin reflect$kotlin_version" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlinkotlin stdlib jre7$kotlin_version" implementation 'com.android.supportappcompat v726.1.0' implementation 'com.android.supportrecyclerview v726.1.0' implementation 'com.android.support.constraintconstraint layout1.0.2' testImplementation 'junitjunit4.12' androidTestImplementation 'com.android.support.test🏃1.0.1' androidTestImplementation 'com.android.support.test.espressoespresso core3.0.1' }
Removing some of the implementation/compile lines from the Android project does not remove the linting errors.
s
I think this like may cause the problem: implementation fileTree(dir: ‘libs’, include: [‘*.jar’]) Please search the libs folder for any redundant kotlin dependencies and remove it.
j
Thanks for the suggestion, but there's no files in the lib folder. Taking that out has no effect. That was boiler plate generated by the Android Studio project.
The problem I'm seeing is related to this, however there's other problems not fully described by this bug report: https://youtrack.jetbrains.com/issue/KT-20406