So, KN requires a gradle versoin > 4.6 now, but...
# kotlin-native
a
So, KN requires a gradle versoin > 4.6 now, but Android gradle plugin has a different idea, they need a version less than 4.6, causes trouble for a multiplatform project when building Android lib:
Copy code
> Failed to apply plugin [id 'com.android.library']
   > Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using Gradle version 4.6 or above. Suggestion: disable configuration on demand by setting org.gradle.configureondemand=false in your gradle.properties file or use a Gradle version less than 4.6.
Anyone has this issue? Even I set that to
false
, Android gradle plugin still gives the same error
g
You have to disable this in IntelliJ settings, too.
a
@giso Thanks, you mean Settings -> Build, Execution, Deployment > Build Tools > Gradle?
g
Yes
a
@gildor I found it. But can’t find where to turn off this feature. It’s just for switching gradle versions, right?
g
No, there is an option "Configure on demand", just disable it
☝️ 1
Actually, I don't understand why Android plugin does this, yeah Configure on demand is deprecated, but option still there, not sure why AGP authors decided to make it so strict instead of deprecation warning
a
IDEA 2018.1 can’t find this option 😄
g
As I remember this is "Compiler" tab, search in settings
a
@gildor Found it, thanks! And silly me, there is a search feature….