declarative-samples-android-app

November 13, 2024 ยท View on GitHub

A sample Android application written in the Declarative Gradle DSL, using the prototype Declarative Gradle androidApplication Software Type defined in the org.gradle.experimental.android-ecosystem ecosystem plugin.

Building and Running

This sample shows the definition of a multiproject Android application implemented using Kotlin 2.0.21 source code. The project is the result of reproducing the project produced by the gradle init command in Gradle 8.9 as an Android project.

To build the project without running, use:

./gradlew build

To run the application, first install it on a connected Android device using:

./gradlew :app:installDebug

In IntelliJ IDEA or Android Studio you can use the app run configuration to launch the app in an emulator to see a hello world message.