Prerequisites
Before you begin, ensure you have:- Android Studio Hedgehog (2023.1.1) or later
- Kotlin 2.1.0 or later
- Minimum SDK 24 (Android 7.0)
- Target SDK 35 (Android 15)
Project Setup
Create or Open Android Project
If you’re starting fresh, create a new Android project with Jetpack Compose support in Android Studio.Choose:
- Empty Compose Activity template
- Minimum SDK: API 24
- Language: Kotlin
Configure Gradle Version Catalog
Add Lumo UI dependencies to your
gradle/libs.versions.toml file:gradle/libs.versions.toml
Configure App Module build.gradle.kts
Update your app-level
build.gradle.kts file:build.gradle.kts
The
com.nomanr.plugin.lumo plugin generates UI component templates for your project.Create UI Components Module (Optional)
For better separation, create a separate library module for your UI components:Then reference it in your app module:
ui-components/build.gradle.kts
build.gradle.kts
Project Structure
A typical Lumo UI Android project follows this structure:Troubleshooting
Build fails with 'Cannot find symbol: AppTheme'
Build fails with 'Cannot find symbol: AppTheme'
Ensure you’ve added the
nomanr-composables dependency and synced your project. The theme is provided by this library.Compose compiler version mismatch
Compose compiler version mismatch
Make sure your Kotlin version matches the Compose compiler version:
Minimum SDK error
Minimum SDK error
Lumo UI requires minimum SDK 24. Update your
minSdk:Vector drawable support issues
Vector drawable support issues
Enable vector drawable support in your
defaultConfig:Next Steps
Explore Components
Browse all available Lumo UI components
Customize Theme
Learn how to customize colors, typography, and shapes
Component Customization
Deep dive into customizing individual components
Multiplatform Setup
Use Lumo UI across Android, iOS, Desktop, and Web