-
-
Notifications
You must be signed in to change notification settings - Fork 81
Android Studio
Android Studio is the official Integrated Development Environment (IDE) for Android app development, built on JetBrains' IntelliJ IDEA platform. It's the primary development tool for building, testing, and debugging Fulguris.
Website: https://developer.android.com/studio
License: Apache License 2.0 (IDE), various licenses for SDK components
Android Studio provides comprehensive tools specifically designed for Android development:
- Kotlin Support: First-class support for Kotlin, the primary language used in Fulguris
- Gradle Integration: Seamless build system integration with dependency management
- Layout Editor: Visual tools for designing and previewing XML layouts
- Debugger: Powerful debugging tools with breakpoints, variable inspection, and step execution
- Profiler: Performance analysis for CPU, memory, network, and battery usage
- Logcat: Real-time log viewer for debugging and monitoring
- Device Manager: Emulator and physical device management
- Code Completion: Intelligent code suggestions and refactoring tools
- Version Control: Integrated Git support for managing code changes
Minimum:
- 8 GB RAM (16 GB recommended)
- 8 GB of available disk space (IDE + Android SDK + Emulator)
- 1280 x 800 minimum screen resolution
Supported Platforms:
- Windows 10/11 (64-bit)
- macOS 10.14 (Mojave) or higher
- Linux (64-bit; tested on Ubuntu, Debian)
- Visit: https://developer.android.com/studio
- Download the installer for your platform
- Run the installer and follow the setup wizard
- Install Android SDK components (automatically prompted on first launch)
- Configure JDK (bundled JDK is included, or specify custom JDK path)
After installation, configure these essential components:
SDK Platforms:
- Android 14 (API 34) - Current target SDK
- Android 13 (API 33)
- Android 12 (API 31)
- Android 11 (API 30)
- Android 8.0 (API 26) - Minimum SDK for Fulguris
SDK Tools:
- Android SDK Build-Tools (latest)
- Android Emulator
- Android SDK Platform-Tools
- Google Play services
- Intel x86 Emulator Accelerator (HAXM) - for Windows/Mac
-
Clone the repository:
git clone https://github.com/Slion/Fulguris.git cd Fulguris -
Open in Android Studio:
- Launch Android Studio
- Select "Open an Existing Project"
- Navigate to the Fulguris directory
- Click "OK"
-
Wait for Gradle sync:
- Android Studio will automatically sync Gradle dependencies
- This may take several minutes on first run
- Check "Build" output window for progress
-
Configure local.properties:
- Create
local.propertiesin the project root (if not exists) - Add SDK location (usually auto-detected):
sdk.dir=C\:\\Users\\YourName\\AppData\\Local\\Android\\Sdk
- Create
Fulguris has multiple build variants for different distribution channels:
Product Flavors:
-
slions- Base flavor with Slions branding -
styx- Alternative branding (legacy)
Distribution Variants:
-
full- Full feature set with all capabilities -
debug- Development builds with debugging enabled
Channels:
-
playstore- Google Play Store version (with Firebase) -
download- Direct download version (with Firebase) -
fdroid- F-Droid version (no proprietary dependencies)
Common Build Variants:
-
slionsFullPlaystoreDebug- Debug build for Play Store testing -
slionsFullDownloadDebug- Debug build for direct distribution -
slionsFullFdroidDebug- Debug build for F-Droid (no Firebase) -
slionsFullPlaystoreRelease- Production Play Store build -
slionsFullDownloadRelease- Production download build -
slionsFullFdroidRelease- Production F-Droid build
Select Build Variant:
- View → Tool Windows → Build Variants
- Choose the appropriate variant for your testing needs
Kotlin Support:
- Syntax highlighting and error detection
- Code completion and parameter hints
- Quick fixes and refactoring tools
- Navigate to declarations and usages
Useful Shortcuts:
-
Ctrl+Space- Code completion -
Ctrl+B- Go to declaration -
Ctrl+Alt+L- Reformat code -
Shift+F6- Rename symbol -
Ctrl+Shift+F- Find in path -
Alt+Enter- Show intention actions and quick fixes
XML Layouts:
- Visual design view with drag-and-drop components
- Split view (code + preview)
- Preview multiple screen sizes and orientations
- Dark mode preview
Resource Management:
- String resources editor with translation support
- Drawable and color resource management
- Style and theme editor
Breakpoint Debugging:
- Set breakpoints - Click gutter next to line number
-
Start debug session - Run → Debug 'app' or
Shift+F9 -
Step through code:
-
F8- Step over -
F7- Step into -
Shift+F8- Step out
-
- Inspect variables - Variables pane shows current values
- Evaluate expressions - Watches and Evaluate Expression (Alt+F8)
Logcat Integration:
- View → Tool Windows → Logcat
- Filter by package name:
net.slions.fulguris - Filter by log level: Error, Warn, Info, Debug, Verbose
- Search logs with regex patterns
CPU Profiler:
- Measure method execution time
- Identify performance bottlenecks
- Track thread activity
Memory Profiler:
- Monitor memory allocation
- Detect memory leaks
- Inspect heap dumps
- Force garbage collection
Network Profiler:
- Monitor HTTP/HTTPS requests
- View request/response headers and body
- Track network usage over time
Battery Profiler:
- Identify battery-draining operations
- Track wake locks and background activity
- Optimize for battery life
How to Profile:
- Run → Profile 'app'
- Select device and wait for app launch
- Choose profiler type (CPU, Memory, Network, or Battery)
- Interact with app to collect data
- Analyze results in profiler view
Android Emulator:
- Create virtual devices for testing
- Multiple device configurations (phone, tablet, foldable)
- Test different Android versions
- Simulate various screen sizes and densities
Create Emulator:
- Tools → Device Manager
- Click "Create Device"
- Select hardware profile (e.g., Pixel 7)
- Select system image (e.g., Android 14 API 34)
- Configure AVD settings
- Click "Finish"
Physical Device Testing:
- Enable Developer Options on device
- Enable USB Debugging
- Connect via USB
- Accept debugging authorization on device
- Device appears in device dropdown
Build Project:
- Build → Make Project (
Ctrl+F9) - Build → Rebuild Project (clean + build)
- Build → Clean Project (remove build artifacts)
Run Configurations:
- Run → Edit Configurations
- Configure launch options, logcat filtering, profiling
- Set up multiple configurations for different testing scenarios
Install and Run:
- Run → Run 'app' (
Shift+F10) - Install and launch - Run → Apply Changes (
Ctrl+F10) - Hot reload (when possible) - Run → Apply Code Changes - Fast incremental updates
Git Integration:
- View → Tool Windows → Git or Version Control
- Commit changes:
Ctrl+K - Push commits:
Ctrl+Shift+K - Pull changes:
Ctrl+T - View diff:
Ctrl+D - Resolve conflicts with visual merge tool
Useful Git Features:
- Annotate (Git Blame) - Right-click line → Git → Annotate
- Local History - View file history even before committing
- Changelists - Organize changes into logical groups
- Shelf - Temporarily save uncommitted changes
Inspections:
- Analyze → Inspect Code
- Detects code issues, performance problems, security vulnerabilities
- Provides quick fixes for many issues
Lint:
- Analyze → Inspect Code (includes Lint)
- Android-specific code quality checks
- Resource optimization suggestions
- Accessibility recommendations
TODO Management:
- View → Tool Windows → TODO
- Lists all TODO, FIXME, and custom tags
- Filter by scope and pattern
# Via Gradle (recommended)
./gradlew assembleSlionsFullDownloadDebug
# Output location:
# app/build/outputs/apk/slionsFullDownload/debug/app-slions-full-download-debug.apkVia Android Studio:
- Build → Build Bundle(s) / APK(s) → Build APK(s)
- Wait for build completion
- Click "locate" in notification to open APK folder
# Via Gradle
./gradlew assembleSlionsFullDownloadRelease
# Requires signing configuration in gradle.properties or keystore setupNote: Release builds require proper signing configuration. See app/build.gradle for signing config.
Unit Tests:
# Via Gradle
./gradlew test
# Via Android Studio
# Right-click test class/method → Run 'TestName'Instrumented Tests:
# Via Gradle
./gradlew connectedAndroidTest
# Via Android Studio
# Right-click test class/method → Run 'TestName'# Via Gradle
./gradlew bundleSlionsFullPlaystoreReleaseVia Android Studio:
- Build → Generate Signed Bundle / APK
- Select "Android App Bundle"
- Choose keystore and signing credentials
- Select build variant:
slionsFullPlaystoreRelease - Click "Finish"
- Output:
app/build/outputs/bundle/slionsFullPlaystoreRelease/
- Build → Analyze APK
- Select APK file from
app/build/outputs/apk/ - View breakdown:
- DEX files (code)
- Resources
- Assets
- Native libraries
- Compare APK sizes between builds
Rename Class/Method/Variable:
- Right-click symbol → Refactor → Rename (
Shift+F6) - Enter new name
- Preview changes
- Click "Do Refactor"
Extract Method:
- Select code block
- Right-click → Refactor → Extract → Method (
Ctrl+Alt+M) - Name the method
- Click "OK"
Move Class:
- Right-click class → Refactor → Move (
F6) - Select target package
- Click "Refactor"
Symptom: "Gradle sync failed" error on project open
Solutions:
- Check internet connection - Gradle downloads dependencies
- Invalidate caches: File → Invalidate Caches → Invalidate and Restart
-
Update Gradle plugin: Check
build.gradlefor latest version - Clean project: Build → Clean Project
-
Check
local.properties- Ensure SDK path is correct -
Delete
.gradlefolder - Let Gradle rebuild cache
Symptom: Emulator fails to launch or crashes
Solutions:
- Check virtualization - Enable Intel VT-x/AMD-V in BIOS
- Update emulator - SDK Manager → Android Emulator (update)
- Increase RAM - AVD Manager → Edit device → Increase RAM allocation
- Cold boot: AVD Manager → Device → Cold Boot Now
- Wipe data: AVD Manager → Device → Wipe Data
Symptom: Compilation fails with errors
Solutions:
- Read error message - Often points to exact issue
- Clean and rebuild: Build → Clean Project, then Build → Rebuild Project
- Sync Gradle: File → Sync Project with Gradle Files
-
Update dependencies: Check
gradle/libs.versions.tomlfor version conflicts - Check Java version: File → Project Structure → SDK Location
- Invalidate caches: File → Invalidate Caches → Invalidate and Restart
Symptom: Breakpoints not hit or debugger won't attach
Solutions:
-
Check build variant - Must be
Debugvariant - Reinstall app - Run → Run 'app' (fresh install)
-
Check debuggable flag - Ensure
debuggable trueinbuild.gradle - Restart ADB: Tools → Troubleshoot Device Connections
- Check device connection: Unplug/replug USB cable
Symptom: Android Studio is slow or unresponsive
Solutions:
-
Increase memory: Help → Edit Custom VM Options
-Xmx4096m -Xms1024m - Disable unused plugins: File → Settings → Plugins
- Exclude build folders: File → Project Structure → Modules → Exclude build directories
- Update to latest version: Check for updates
- Use Power Save Mode: File → Power Save Mode (disables inspections)
- Enable auto-formatting: Settings → Editor → Code Style → Enable on save
- Run inspections regularly: Analyze → Inspect Code
- Use TODO comments for tracking pending work
- Write unit tests for critical business logic
-
Use Apply Changes (
Ctrl+F10) instead of full reinstall when possible - Disable unnecessary inspections for faster IDE performance
- Use Gradle daemon for faster builds (enabled by default)
-
Exclude large directories (e.g.,
node_modules) from indexing
- Learn keyboard shortcuts: Help → Keyboard Shortcuts PDF
- Use Live Templates: Settings → Editor → Live Templates
-
Bookmarks:
F11to toggle,Shift+F11to view all -
Recent Files:
Ctrl+Efor quick navigation -
Search Everywhere: Double
Shiftfor universal search
- Use conditional breakpoints - Right-click breakpoint → Condition
- Log evaluation - Right-click breakpoint → Evaluate and log
- Enable exception breakpoints - View Breakpoints → Java Exception Breakpoints
- Attach debugger to running process - Run → Attach Debugger to Android Process
Recommended Plugins:
- Kotlin (built-in) - Kotlin language support
-
.ignore - Support for
.gitignoreand other ignore files - Rainbow Brackets - Colorful bracket matching
- Material Theme UI - Alternative IDE theme
- Translation - Quick translation for string resources
- SonarLint - Additional code quality checks
Install Plugins:
- File → Settings → Plugins
- Search plugin name
- Click "Install"
- Restart IDE
- App Manager - Device-side debugging and package management
- BrowserLeaks - Web-based feature testing
- Building - Build configuration and release process
- Official Website: https://developer.android.com/studio
- Documentation: https://developer.android.com/studio/intro
- Release Notes: https://developer.android.com/studio/releases
- Keyboard Shortcuts: https://developer.android.com/studio/intro/keyboard-shortcuts
- Troubleshooting: https://developer.android.com/studio/troubleshoot
Last Updated: December 21, 2025
Maintained by: Fulguris Development Team