Arctic Fox was the first stable Compose release. Enable Compose buildFeatures compose true

– 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?

buildscript ext.kotlin_version = '1.5.31' // Kotlin 1.5.31 recommended repositories google() mavenCentral() dependencies classpath 'com.android.tools.build:gradle:7.0.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

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

kotlinOptions jvmTarget = '1.8'

composeOptions kotlinCompilerExtensionVersion '1.0.5' // match Kotlin 1.5.31

Shopping Cart
Scan the code