Travis Griggs
03/05/2023, 12:19 AMTravis Griggs
03/05/2023, 2:58 AMplugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
}
• Change the compiler version in the module build.gradle:
kotlinCompilerExtensionVersion '1.4.3'
• Set the dependencies in same file to:
dependencies {
// <https://developer.android.com/jetpack/compose/setup#kotlin>
def composeBom = platform('androidx.compose:compose-bom:2023.01.00')
implementation composeBom
androidTestImplementation composeBom
// Material Design 3
implementation 'androidx.compose.material3:material3'
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// UI Tests
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
// Optional - Integration with activities
implementation 'androidx.activity:activity-compose:1.6.1'
// Newer version of material
implementation 'androidx.compose.material3:material3:1.1.0-alpha06'
}
Any attempt to let the IDE change that last one to alpha07 is met with failures en-masse. But this seems decent for now.dorche
03/05/2023, 12:46 PMTravis Griggs
03/06/2023, 5:45 PM