compileOptions sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
android compileSdk 31 buildToolsVersion "31.0.0" defaultConfig minSdk 21 targetSdk 31 android studio arctic fox
dependencies implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.0' compileOptions sourceCompatibility JavaVersion
Arctic Fox was the first stable Compose release. Enable Compose buildFeatures compose true android studio arctic fox
kotlinOptions jvmTarget = '1.8'
– test gradle and kotlin versions together. ⚠️ Note : Arctic Fox is now archived (released Nov 2021). For new projects, use Android Studio Hedgehog (2023.1.1) or later. This guide is for maintaining legacy projects or specific compatibility requirements. Would you like a migration script or a sample build.gradle template for a fresh Arctic Fox project?
buildFeatures viewBinding true compose true // for Jetpack Compose