Dependencies
Packages
Amplify UI Android requires Android API level 24 (Android 7.0) or above. The Amplify UI Android connected components are built using Jetpack Compose. You will need to update the app's build.gradle
file as shown below to use Jetpack Compose.
android {
compileOptions {
// Support for Java 8 features
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.2.0'
}
}
dependencies {
// Material3 dependency for theming the connected components
implementation 'androidx.compose.material3:material3:1.1.0'
// Support for Java 8 features
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}