-
Install Android Studio
Download and install Android Studio (link).
-
Make sure Java is Installed
In terminal run:
java --version
If Java is not installed, run the following lines:
brew install java brew install oracle-jdk --cask
If you need to install brew, go to this link to learn how.
Once you're done, confirm that Java is installed by running the following line in terminal:
java --version
-
Install KLint This project uses ktlint and Spotless to maintain code consistency.
For this to work you must have installed ktlint on your machine.
brew install ktlint
If you need to install brew, go to this link to learn how.
-
That's it
Open this project in Android Studio and get started.
Option + Shift + Click
Format this file
Command + Option + L
Format this file, with options
Command + Option + Shift + L
Find in File
Command + F
Find and Replace in Project
Command + Shift + F ->
Find and Replace in File
Command + R
Find and Replace in Project
Command + Shift + R
- How to clean and rebuild an Android project in Android Studio 🔗
- How to sync an Android project with its Gradle files in Android Studio 🔗
- How to rename an Android Studio Project 🔗
- How to enable developer mode on an Android phone or tablet 🔗
- How to create a file, folder or resource in Android Studio 🔗
- How to add a custom font to an Android Studio project 🔗
- How to add and use custom colors in an Android project 🔗
- How to get the current Android System Language in Kotlin 🔗
- How to maintain state values when Android changes configuration 🔗
- How to implement a custom back button action in an Android Activity in Kotlin 🔗
- How to implement a custom back button action in a Composable in Kotlin 🔗
- How to change the Android app icon in Android Studio 🔗
- How to change an Android App's Splash Screen 🔗
- How to build a test APK in Android Studio 🔗
- How to build and find a release APK or Bundle in Android Studio 🔗
- How to build and test a release APK on a local device 🔗
- How to obfuscated the code of an Android app in Android Studio 🔗
- How to not obfuscate specific Android files or folder 🔗
- How to create and use a Singleton in Kotlin 🔗
- How to create a Styleguide in Android Studio and Kotlin 🔗
- How to create and use a Language Coordinator in Kotlin 🔗
- How to store and retrieve data using the Android DataStore 🔗
- How to implement custom Text Styles using Kotlin and Jetpack Compose 🔗
- How to use light mode and dark mode in Android Studio and Kotlin 🔗
- How to use light mode and dark mode in Android Studio and Kotlin 🔗
- How to determine if an Android app is using light mode or dark mode 🔗
- How to create a composable that uses a ConstraintLayout in Kotlin 🔗
- How to implement an image in Android using Jetpack Compose and Kotlin 🔗
- How to use Material Symbols in Android, Jetpack Compose and Kotlin 🔗
- How to tint an icon or an image using Jetpack Compose and Kotlin 🔗
- How to create a custom button using Jetpack Compose and Kotlin 🔗
- How to load and display an image from a URL using Jetpack Compose and Kotlin 🔗
- How to create a composable that sizes to fit using Kotlin 🔗
- How to broadcast an Intent in Kotlin 🔗
- How to listen for an intent using a Broadcast Receiver in an Activity 🔗
- How to listen for an intent using a Broadcast Receiver in a Composable 🔗
- How to make the Android Studio emulator update the screen on rotate 🔗
- How to determine the orientation of an Android device 🔗
- How to determine if an Android device is Landscape or Portrait 🔗
- How to lock an Android apps orientation in Android Studio 🔗
- How to add a JSON file to an Android Studio project 🔗
- How to read a JSON file from the assets folder using Kotlin 🔗
- How to convert a JSON into usable data in Kotlin 🔗
- How to make an API request in an Android app using Kotlin 🔗
- How to manage what broadcasts Broadcast Receivers receive in Kotlin 🔗
- How to implement implicit and explicit Android Intents in Kotlin 🔗
- How to create a Gradle file in Android Studio 🔗
- How to run a Gradle Kotlin DSL build task in Android Studio 🔗
- How to run a task at any stage of an app Gradle build 🔗
- How to add ktlint and spotless to an Android project 🔗
- Spotless Gradle Guide 🔗
- How to run Spotless and ktlint in a pre-commit git hook 🔗
- How to add a pre-commit git hook script using a Gradle task 🔗
- How to fix the JAVA_HOME invalid directory error on a Mac 🔗
- How to fix the SDK location not found error in Android Studio 🔗
- How to fix installation did not succeed due to calling service package 🔗
Apply Spotless Check In Android Studio, open the terminal window and run the following line
./gradlew spotlessCheck
Apply Spotless Apply In Android Studio, open the terminal window and run the following line
./gradlew spotlessApply
Apply ktlint check In Android Studio, open the terminal window and run the following line
./gradlew ktlintCheck
Apply ktlint format In Android Studio, open the terminal window and run the following line
./gradlew ktlintFormat
Modify Spotless and ktlint Open the spotless.gradle to change the configuration using the Spotless Gradle Guide 🔗.