hellotimmutton
03/26/2018, 4:18 AMError:(33, 0) Platform project project ':android' has more than one 'expectedBy' dependency: project ':common', project ':common-frontend'
gildor
03/26/2018, 4:39 AMhellotimmutton
03/26/2018, 4:40 AMgildor
03/26/2018, 4:43 AMilya.matveev
03/26/2018, 5:29 AMbuild.gradle
?hellotimmutton
03/26/2018, 5:41 AMilya.matveev
03/26/2018, 6:27 AMgradle.build
of your :android
project. Do you use Kotlin/Native or Kotlin/JVM for this project?hellotimmutton
03/26/2018, 6:53 AMapply plugin: 'com.android.application'
apply plugin: 'kotlin-platform-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 27
defaultConfig {
applicationId "au.com.timmutton"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), '<http://proguard-rules.pro|proguard-rules.pro>'
}
}
}
ext {
supportVersion = '27.0.2'
retrofitVersion = '2.3.0'
}
dependencies {
expectedBy project(':common')
expectedBy project(':common-frontend')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion"
implementation "com.android.support:appcompat-v7:$supportVersion"
implementation "com.google.code.gson:gson:2.8.2"
implementation "io.reactivex.rxjava2:rxjava:2.1.8",
"io.reactivex.rxjava2:rxandroid:2.0.1"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion",
"com.squareup.retrofit2:converter-gson:$retrofitVersion",
"com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion",
'com.squareup.okhttp3:logging-interceptor:3.4.1'
}
ilya.matveev
03/26/2018, 7:08 AMkotlin-platform-android
plugin), not Kotlin/Native in this project. As Andrey said this issue should be resolved in 1.2.40-eap (see the changelog: https://github.com/JetBrains/kotlin/releases/tag/v1.2.40-eap-16). What version of kotlin-platform-android
are you using?hellotimmutton
03/26/2018, 7:13 AMilya.matveev
03/26/2018, 8:38 AMexpectedBy
dependencies are not supported in Kotlin prior to 1.2.40
. So try to change the Kotlin version to 1.2.40-eap-16
. You also may have to include the kotlin-eap repo in your project. To do it just add the following snippet in your top-level `build.gradle`:
buildscript {
repositories {
maven { url '<https://dl.bintray.com/kotlin/kotlin-eap>' }
}
}
allprojects {
repositories {
maven { url '<https://dl.bintray.com/kotlin/kotlin-eap>' }
}
}
hellotimmutton
03/27/2018, 1:36 AM