Android Studio Arctic Fox ((top)) -

compileOptions sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8

composeOptions kotlinCompilerExtensionVersion '1.0.5' // match Kotlin 1.5.31 android studio arctic fox

– 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? compileOptions sourceCompatibility JavaVersion

@Composable fun Greeting(name: String) Text(text = "Hello $name!") android studio arctic fox

kotlinOptions jvmTarget = '1.8'

@Preview @Composable fun PreviewGreeting() Greeting("Android")

android compileSdk 31 buildToolsVersion "31.0.0" defaultConfig minSdk 21 targetSdk 31