Prerequisites
Before starting, ensure you have:- Completed the installation process
- Installed Android build tools through the onboarding process
- Granted necessary storage permissions
- At least 2GB of free storage space for your project
Android Code Studio requires Android Gradle Plugin (AGP) v7.2.0 or newer. The IDE automatically creates projects with compatible versions.
Creating Your First Project
Open Project Wizard
- Launch Android Code Studio
- On the main screen, tap Create New Project or the + button
- The project creation wizard will open
Select a Template
Choose from several project templates:
- Empty Activity - Basic activity with minimal UI (recommended for beginners)
- Basic Activity - Activity with a toolbar and floating action button
- Bottom Navigation Activity - Three-fragment app with bottom navigation
- Navigation Drawer Activity - Side navigation drawer with multiple fragments
- Tabbed Activity - ViewPager-based tabbed interface
- Compose Empty Activity - Jetpack Compose-based activity
- Native C++ Activity - Activity with C++ JNI support
- No Activity - Empty project with no default activity
Configure Your Project
Fill in the project details:
- Name: Enter your app name (e.g., “My First App”)
- Package name: Enter a unique package name (e.g., “com.example.myfirstapp”)
- Save location: Choose where to save your project (default:
/sdcard/AndroidCodeStudio/projects/) - Language: Select Kotlin or Java
- Minimum SDK: Choose minimum Android version (API 21+ recommended)
- Use AndroidX: Keep this enabled (recommended)
Wait for Project Initialization
Android Code Studio will:
- Generate project structure and files
- Create Gradle build scripts
- Configure project dependencies
- Perform initial Gradle sync
The first Gradle sync downloads required dependencies and may take longer depending on your internet speed.
Understanding Project Structure
After project creation, you’ll see the following structure:Key Files
- MainActivity.kt - The main activity class
- activity_main.xml - The main layout file
- AndroidManifest.xml - App configuration and permissions
- build.gradle.kts - Module-level build configuration
- strings.xml - String resources for localization
Editing Your First Activity
Let’s modify the default activity to display a custom message.Open MainActivity
- In the project tree, expand app > src > main > java
- Navigate to your package (e.g., com.example.myfirstapp)
- Tap MainActivity.kt to open it in the editor
MainActivity.kt
Android Code Studio uses View Binding by default, which provides type-safe access to views without
findViewById().Edit the Layout
- Open res > layout > activity_main.xml
- You’ll see the XML layout in the editor
- Android Code Studio provides both XML editing and visual UI designer
activity_main.xml
Use the UI Designer (Optional)
Android Code Studio includes a powerful UI designer:
- Tap the Designer tab
- Drag widgets from the palette onto the canvas
- Adjust properties in the attributes panel
- Add constraints by dragging connection points
- Live layout preview
- Drag & drop interface
- Visual attribute editor
- Resource value auto-completion
- Real-time constraint visualization
Adding Functionality
Let’s add a button that shows a toast message when clicked.Building Your Project
Start the Build
Initiate a build in one of these ways:
- Tap the Build menu and select Build APK
- Tap the Run button (▶) in the toolbar
- Use the keyboard shortcut Ctrl+B
Monitor Build Progress
The build panel at the bottom shows:
- Gradle sync status
- Compilation progress
- Task execution details
- Warnings and errors
If the build fails, carefully read the error messages. Common issues include missing dependencies, syntax errors, or incorrect AGP versions.
Running Your App
Install the APK
After a successful build:
- Tap the Install notification
- Grant installation permission if prompted
- Wait for installation to complete
Launch Your App
- Open your app drawer
- Find “My First App” (or your chosen name)
- Tap to launch
- Test the button functionality
Using Code Features
Android Code Studio provides powerful code editing features:Code Completion
- Type to see intelligent suggestions
- Auto-complete class names, methods, and variables
- Resource value auto-completion in XML
- Import suggestions for unresolved symbols
Language Servers
Android Code Studio includes language servers for:- Java - Full Java language support with syntax checking
- Kotlin - Kotlin language features and analysis
- XML - XML validation and resource resolution
Code Navigation
- Go to Definition - Long-press a symbol and select “Go to Definition”
- Find References - Find all usages of a class, method, or variable
- File Search - Quickly search for files by name (Ctrl+P)
- Symbol Search - Search for classes and methods (Ctrl+Shift+N)
Git Integration
Android Code Studio has built-in Git support:- Initialize a repository: VCS > Enable Version Control
- Commit changes: VCS > Commit
- View diff: Compare current changes with last commit
- Branch management: Create, switch, and merge branches
Git operations can also be performed via the integrated terminal using standard Git commands.
AI-Powered Assistance
Android Code Studio includes an AI Agent that understands your project:- Tap the AI Assistant button in the toolbar
- Ask questions about your code or request help
- The AI analyzes your project structure and provides context-aware suggestions
- Use it for debugging, code generation, and learning
- “How do I add a RecyclerView to my activity?”
- “Why is my button not responding to clicks?”
- “Generate a data class for a user profile”
Next Steps
Now that you’ve created and built your first Android app, explore these features:Additional Tools
- Asset Studio - Create icons and drawables
- UI Designer - Visually design complex layouts
- Terminal - Access full command-line tools
- SDK Manager - Manage Android SDK components via terminal
- Plugin Creator - Create sub-modules in your project
Advanced Templates
Try other project templates:Learning Resources
- Explore the official AndroidIDE documentation
- Join the Telegram community for support
- Report bugs on GitHub Issues
- Visit the website for updates
Troubleshooting
Build Failures
If your build fails:- Check the error message in the build output
- Ensure you have sufficient storage space
- Try Build > Clean Project then rebuild
- Verify your internet connection for dependency downloads
- Check that your project uses AGP 7.2.0+
Slow Performance
To improve performance:- Close unused files in the editor
- Disable unused language servers in settings
- Reduce the number of open projects
- Clear Gradle cache if builds are slow:
./gradlew clean
Installation Issues
If the built APK fails to install:- Uninstall previous versions of your app
- Check if storage is full
- Verify the APK is not corrupted
- Ensure you have installation permissions