# build.gradle.kts conversion for Android Studio Empty Activity

DevFeed: [build.gradle.kts conversion for Android Studio Empty Activity](<https://devfeed.tech/articles/build-gradle-kts-conversion-for-android-studio-empty-activity-24904.md>)

Original publisher: [Read original article](<https://blog.blundellapps.co.uk/build-gradle-kts-conversion-for-android-studio-empty-activity/>)

Author: blundell

Published: 2023-07-05T09:45:18Z

Content type: tutorial

Language: en

Sources: [Blundell](<https://devfeed.tech/sources/blundell.md>)

Topics: [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Groovy](<https://devfeed.tech/topics/groovy.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [blog](<https://devfeed.tech/tags/blog.md>), [build](<https://devfeed.tech/tags/build.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [explainer](<https://devfeed.tech/tags/explainer.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [groovy](<https://devfeed.tech/tags/groovy.md>), [intermediate](<https://devfeed.tech/tags/intermediate.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [reference](<https://devfeed.tech/tags/reference.md>), [reference-android-androiddev-gradle-groovy-kotlin](<https://devfeed.tech/tags/reference-android-androiddev-gradle-groovy-kotlin.md>), [update](<https://devfeed.tech/tags/update.md>)

## AI overview

A quick tutorial converts the default Groovy build.gradle files from Android Studio's Empty Activity template into Kotlin DSL build.gradle.kts files. It also points to Google's and Gradle's guidance on converting build configuration scripts and notes that Kotlin DSL was announced as the new default.

## Source excerpt

Quick blog posting showing you the build.gradle.kts version of the default build.gradle file from the "empty activity" Android Studio template. This post will go stale fast, get it whilst its hot. 🙂 The original templates come from the New Project, other templates are explained here: https://developer.android.com/studio/projects/templates Google has an explainer of converting build configuration scripts [...] The post build.gradle.kts conversion for Android Studio Empty Activity first appeared on Blundell.