Prerequisites
Before you begin, ensure you have the following tools installed on your development machine:Required Software
Android Studio
Android Studio Iguana (2023.2.1) or newerDownload from developer.android.com
Java Development Kit
JDK 11 or newerIncluded with Android Studio or download separately
Android SDK
Android SDK Platform 24-36Installed via Android Studio SDK Manager
Git
Git 2.0+For cloning the repository
System Requirements
Installation Steps
Install Android Studio
Download and install the latest version of Android Studio from the official website.During installation, make sure to install:
- Android SDK
- Android SDK Platform
- Android Virtual Device (for emulator)
The first launch will download additional components. This may take 10-15 minutes depending on your internet connection.
Configure Android SDK
Open Android Studio and navigate to Settings → Appearance & Behavior → System Settings → Android SDK.Ensure the following are installed:
- Android 14.0 (API 36) - Target SDK
- Android 7.0 (API 24) - Minimum SDK
- Android SDK Build-Tools 34.0.0 or newer
- Android SDK Platform-Tools
- Android Emulator
Open Project in Android Studio
- Launch Android Studio
- Click File → Open
- Navigate to the cloned
tecnm-control-escolardirectory - Select the root folder and click OK
Wait for Gradle Sync
Android Studio will automatically run a Gradle sync to download dependencies and configure the project.You’ll see a progress indicator at the bottom of the IDE:Once complete, you should see:The project structure will appear in the Project panel on the left.
Alternative Installation Methods
Using Android Studio’s VCS Integration
You can clone the repository directly from Android Studio:Manual Dependency Installation
If Gradle sync fails due to network issues, you can manually download dependencies:Troubleshooting
Gradle Sync Failed
Error: SDK location not found
Error: SDK location not found
Solution: Set the SDK path manually.Create a Common paths:
local.properties file in the project root:- Windows:
C:\Users\YourName\AppData\Local\Android\Sdk - macOS:
/Users/YourName/Library/Android/sdk - Linux:
/home/YourName/Android/Sdk
Error: Unsupported Gradle version
Error: Unsupported Gradle version
Solution: Update Gradle wrapper.Then sync again in Android Studio.
Error: Failed to resolve dependencies
Error: Failed to resolve dependencies
Solution: Check your internet connection and proxy settings.
- Go to Settings → Appearance & Behavior → System Settings → HTTP Proxy
- Configure proxy if behind a firewall
- Click File → Invalidate Caches → Invalidate and Restart
Error: Java version incompatibility
Error: Java version incompatibility
Solution: Ensure you’re using JDK 11 or newer.Check your Java version:In Android Studio:
- Go to Settings → Build, Execution, Deployment → Build Tools → Gradle
- Set Gradle JDK to Java 11 or newer
Build Errors
If you encounter persistent build errors:Emulator Issues
If you can’t create or run the Android Emulator:- Enable virtualization in your BIOS (Intel VT-x or AMD-V)
- Install Intel HAXM (for Intel processors) via SDK Manager
- Increase RAM allocation for the emulator (4 GB recommended)
- Use a system image with Google APIs for better compatibility
Verify Installation
To verify everything is set up correctly:- Open
MainActivity.ktin Android Studio - Check that syntax highlighting works properly
- Look for the green play button (▶️) in the toolbar
- No red error indicators should appear in the file
Next Steps
Quick Start Guide
Run the app and explore its features
Project Structure
Learn how the codebase is organized
