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

dependencies implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.0'

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

– 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

Scroll to Top
WhatsApp Icon