✅ What it is: A collection of templates featuring a layered architecture ready to be used in greenfield projects or quick experiments, following the Guide to app architecture.
🙅 What it's not: These templates are not designed to be educational code samples. For that, check out Architecture Samples, the Now In Android sample or Compose samples.
Templates are compatible with the latest stable version of Android Studio.
| Template | Description |
|---|---|
base | Reactive architecture, Compose, database, single module |
multimodule | Base template + multimodule |
The app contains a simple Compose UI that shows a list of
saved strings and lets the user save new ones.
base branch:git clone https://github.com/android/architecture-templates.git --branch base targetDirectory
For the customizer to work, dont open the project in Android Studio yet.
bash customizer.sh your.package.name DataItemType [YourAppName]
your.package.name is your app ID (should be lowercase)DataItemType is used for the name of the screen, exposed state and data base entity
(should be PascalCase).Note: the customizer script requires bash 4 and above. You might have to install a modern version on macOS:
brew install bash
This code is distributed under the terms of the Apache License (Version 2.0). See the license for more information.
495 followers · starred Sep 2022
507 followers · starred Jan 2025
271 followers · starred Jan 2025
32 followers · starred Nov 2024
✅ What it is: A collection of templates featuring a layered architecture ready to be used in greenfield projects or quick experiments, following the Guide to app architecture.
🙅 What it's not: These templates are not designed to be educational code samples. For that, check out Architecture Samples, the Now In Android sample or Compose samples.
Templates are compatible with the latest stable version of Android Studio.
| Template | Description |
|---|---|
base | Reactive architecture, Compose, database, single module |
multimodule | Base template + multimodule |
The app contains a simple Compose UI that shows a list of
saved strings and lets the user save new ones.
base branch:git clone https://github.com/android/architecture-templates.git --branch base targetDirectory
For the customizer to work, dont open the project in Android Studio yet.
bash customizer.sh your.package.name DataItemType [YourAppName]
your.package.name is your app ID (should be lowercase)DataItemType is used for the name of the screen, exposed state and data base entity
(should be PascalCase).Note: the customizer script requires bash 4 and above. You might have to install a modern version on macOS:
brew install bash
This code is distributed under the terms of the Apache License (Version 2.0). See the license for more information.
495 followers · starred Sep 2022
507 followers · starred Jan 2025
271 followers · starred Jan 2025
32 followers · starred Nov 2024