Prerequisites
Before building the TecMeli app, ensure you have:- Android Studio Ladybug or later
- JDK 11 or higher
- Android SDK with API level 36
- Gradle 8.0+ (included via Gradle Wrapper)
Build Configuration
The project uses Gradle with Kotlin DSL for build configuration. The main configuration files are:Environment Configuration
Create local.properties
Create a
local.properties file in the project root (this file is gitignored):Building the App
Using Android Studio
Sync Project
Open the project in Android Studio and sync Gradle files:File → Sync Project with Gradle Files
Build the App
Select a build variant (Debug/Release) and build:Build → Make Project or press
Ctrl+F9 (Windows/Linux) / Cmd+F9 (Mac)Using Command Line
Build Variants
The project supports standard Android build types:| Build Type | Minification | Debugging | ProGuard |
|---|---|---|---|
| Debug | Disabled | Enabled | No |
| Release | Disabled | Disabled | Yes |
Minification is currently disabled in release builds. Enable it by setting
isMinifyEnabled = true for production releases.Compilation Options
The project uses Java 11 compatibility:- Jetpack Compose - Modern declarative UI toolkit
- BuildConfig - Access to build-time configuration values
Dependency Management
The project uses version catalogs for centralized dependency management. All dependencies are defined ingradle/libs.versions.toml:
Core Dependencies
Core Dependencies
Compose UI
Compose UI
Dependency Injection
Dependency Injection
Networking
Networking
Testing
Testing
Common Build Issues
Build fails with 'SDK location not found'
Build fails with 'SDK location not found'
Solution: Create Or set the
local.properties with your Android SDK path:ANDROID_HOME environment variable.Hilt compilation errors
Hilt compilation errors
Solution: Clean and rebuild the project:Ensure
@HiltAndroidApp is present in your Application class.Compose compiler version mismatch
Compose compiler version mismatch
Solution: Verify that Kotlin and Compose compiler versions are compatible. The project uses:
- Kotlin: 2.3.10
- Compose Plugin: kotlin.plugin.compose
Missing API credentials
Missing API credentials
Solution: Add Mercado Libre credentials to
local.properties:Build Output
After a successful build, you’ll find the following artifacts:Next Steps
Testing
Learn how to run tests and generate coverage reports
Contributing
Read the contribution guidelines