Omar Miatello
11/17/2020, 3:13 PMbuildscript {
configurations.all {
resolutionStrategy { force 'com.android.tools.build:gradle:4.2.0-alpha16' }
}
}
but didn’t work 😞
Do you know a solution to enable Compose on a single module?Bryan Herbst
11/17/2020, 3:15 PMandroid {
buildFeatures {
compose true
}
}
on the one module you want to enable compose forOmar Miatello
11/17/2020, 3:25 PMBryan Herbst
11/17/2020, 4:00 PMandylamax
11/17/2020, 4:07 PMOmar Miatello
11/17/2020, 4:29 PMbuildscript {}
andylamax
11/17/2020, 4:34 PMandylamax
11/17/2020, 4:35 PMJoost Klitsie
11/17/2020, 4:42 PMbuildscript {
dependencies {
classpath("com.android.tools.build:gradle:4.2.0-alpha16")
}
}
Good old fashioned non-compose code should still work just fine with this. Then you can enable it per module by setting the build featureOmar Miatello
11/17/2020, 4:53 PMandylamax
11/17/2020, 4:57 PMnonameden
11/17/2020, 6:15 PMandylamax
11/17/2020, 7:07 PMplugins {
id("com.android.library") version "4.1.0"
kotlin("andriid") version "1.4.10"
}
apply plugin: "com.android.library" // wont worknonameden
11/24/2020, 7:42 AMapply false
) gradle sync will fail with an exception java.lang.NoClassDefFoundError: com/android/build/gradle/BaseExtension
Adding AGP to root without applying it will fail as well, because you can specify version only once and it ends up with Error resolving plugin [id: 'com.android.application', version: '4.1.1', artifact: 'com.android.tools.build:gradle:4.1.1']
, looks like I am stuck now =(