
Write your app | Android Studio - Android Developers
Sep 23, 2024 · Android Studio includes tools for every stage of development, but what's most important is simply writing your app: writing the code, building layouts, creating images, and being productive along the way.
Build your first app | Get started | Android Developers
Jetpack Compose simplifies and accelerates UI development on Android. Write less code and use powerful tools and intuitive Kotlin APIs.
Create your first Android app
In this codelab, you create your first Android app with a project template provided by Android Studio. You use Kotlin and Jetpack Compose to customize your app. Note that Android Studio gets updated and sometimes the UI changes so it is okay if your Android Studio looks a little different than the screenshots in this codelab.
AI-assisted coding | Android Studio | Android Developers
Apr 9, 2025 · Gemini in Android Studio empowers you to build apps faster than ever with AI-assisted coding features. Code transformation. You can prompt Gemini from the code editor for code suggestions to modify, optimize, or add code to your app as follows: To see an input field for your prompt, do one of the following from the code editor:
Test in Android Studio
Mar 14, 2024 · Android Studio showing test results overview. This page is about how to manage tests in Android Studio. To learn how to write automated Android tests, see Test apps on Android. Test types and locations. The location of your tests depends on the type of test you write. Android projects have default source code directories for local unit tests ...
Build local unit tests | Test your app on Android - Android …
Feb 10, 2025 · You write your local unit test class as a JUnit 4 test class. To do so, create a class that contains one or more test methods, usually in module-name/src/test/. A test method begins with the @Test annotation and contains the code to exercise and verify a single aspect of the component that you want to test.
Android Basics with Compose course | Android Developers
Learn programming basics and create your first Android app. Write simple Kotlin programs that display text output. Download and install Android Studio. Build an Android app with a simple user interface that displays text and images. Run the app on a device or emulator.
Your first program in Kotlin | Android Developers
In this course, you will build apps by writing code in the Kotlin programming language, which is the language recommended by Google when creating new Android apps. Kotlin is a modern programming language that helps developers be more productive.
Find sample code | Android Studio - Android Developers
Apr 13, 2023 · This page describes how to access and use the high-quality, Google-provided Android code samples. For information about templates, see Add code from a template. Browse Samples dialog. Use the samples browser to select, preview, and import one or more sample apps as projects: Select File > New > Import Sample.
Create a Java class or type | Android Studio - Android Developers
Apr 16, 2025 · After you fill in the Create New Class dialog fields and click OK, Android Studio creates a .java file containing skeleton code, including a package statement, any necessary imports, a header, and a class or type declaration. Next, you can add your code to this file.