Installation overview
This comprehensive guide walks you through setting up a complete development environment for TechSales Android, from installing Android Studio to running your first build.System requirements
Before installing, verify your system meets these requirements:Hardware requirements
- RAM: 8 GB minimum, 16 GB recommended
- Disk Space: 10 GB minimum for Android Studio + SDK
- Display: 1280 x 800 minimum screen resolution
- Processor: x86_64 CPU architecture; 2nd generation Intel Core or newer, or AMD equivalent
Operating system requirements
- Windows
- macOS
- Linux
- Windows 10 (64-bit) or later
- Windows Subsystem for Linux (WSL) not required but optional
Install Java Development Kit
TechSales requires Java 11 as specified inapp/build.gradle.kts:32-35:
Download JDK 11
- Oracle JDK: Download from Oracle
- OpenJDK: Download from Adoptium
- Amazon Corretto: Download from AWS
Verify Java installation
Set JAVA_HOME environment variable
- Windows
- macOS/Linux
- Open System Properties > Advanced > Environment Variables
- Click New under System Variables
- Set Variable Name:
JAVA_HOME - Set Variable Value: Path to JDK (e.g.,
C:\Program Files\Java\jdk-11) - Click OK
Install Android Studio
Download Android Studio
Run the installer
- Windows
- macOS
- Linux
- Run the
.exeinstaller - Follow the setup wizard
- Choose Standard installation type
- Select a theme (optional)
- Review settings and click Finish
Complete Android Studio setup wizard
- Check for existing SDK installations
- Download Android SDK components
- Download Android SDK Platform-Tools
- Download Android Emulator
- Configure default settings
Configure Android SDK
TechSales requires specific SDK components based on its configuration:Open SDK Manager
- Click Tools > SDK Manager
- Or click the SDK Manager icon in the toolbar
- Or go to File > Settings > Appearance & Behavior > System Settings > Android SDK
Install SDK platforms
- Android API 36 (Android 15) - Required for
targetSdk = 36 - Android API 29 (Android 10) - Required for
minSdk = 29 - Android API 34 (Android 14) - Recommended for testing
minorApiLevel = 1 as specified in app/build.gradle.kts:7-11.Install SDK tools
- Android SDK Build-Tools (latest version)
- Android Emulator
- Android SDK Platform-Tools
- Intel x86 Emulator Accelerator (HAXM installer) (Windows/Linux)
- Google Play services (optional, for future features)
Clone and import TechSales project
Open project in Android Studio
- Select File > Open
- Navigate to the cloned
TechSalesdirectory - Select the root folder (containing
settings.gradle.kts) - Click OK
Wait for initial Gradle sync
-
Reading project configuration from
settings.gradle.kts:25-26: -
Downloading dependencies from
gradle/libs.versions.toml:11-18:- androidx.appcompat:appcompat:1.6.1
- com.google.android.material:material:1.10.0
- androidx.activity:activity:1.8.0
- androidx.constraintlayout:constraintlayout:2.1.4
- Configuring build tools (Android Gradle Plugin 9.0.1)
Configure JDK in Android Studio
- Go to File > Project Structure > SDK Location
- Under JDK location, click the dropdown
- Select Download JDK or choose an existing JDK 11+ installation
- Click Apply and OK
Verify Gradle sync success
- Success message: “Gradle sync finished in Xs”
- No error messages in the sync log
- Project structure visible in the Project panel
Setup Android emulator
Open Device Manager
- Click Tools > Device Manager
- Or click the Device Manager icon in the toolbar
Create virtual device
- Click Create Device
- Select a device definition (Pixel 7 recommended)
- Click Next
Select system image
- Choose a system image with API 29 or higher
- Recommended: API 34 (Android 14) with Google APIs
- Click Download if not already installed
- Click Next
Configure AVD
- Name your AVD (e.g., “Pixel_7_API_34”)
- Select Portrait orientation
- Enable Hardware - GLES 2.0 for better graphics
- Click Finish
Verify installation
Build the project
- Click Build > Clean Project
- Wait for completion
- Click Build > Rebuild Project
Run TechSales
- Select your device/emulator from the device dropdown
- Click the Run button (green triangle)
- Wait for the build and deployment to complete
Verify app launch
- Main activity with “Hello World!” text centered on screen
- Edge-to-edge layout properly handling system bars
- Material Design theme applied
- No crashes or errors in Logcat
Project dependencies
TechSales uses the following dependencies managed through Gradle Version Catalogs:Core libraries
Testing libraries
app/build.gradle.kts:38-46 and resolved from Google and Maven Central repositories configured in settings.gradle.kts:17-23.
Troubleshooting
Gradle sync fails with 'SDK not found'
Gradle sync fails with 'SDK not found'
- Open File > Project Structure > SDK Location
- Verify the Android SDK location points to a valid SDK installation
- If empty or incorrect, click the folder icon and select your SDK directory
- Typical locations:
- Windows:
C:\Users\<username>\AppData\Local\Android\Sdk - macOS:
/Users/<username>/Library/Android/sdk - Linux:
/home/<username>/Android/Sdk
- Windows:
- Click Apply and sync again
Java version mismatch errors
Java version mismatch errors
- Verify your JDK installation:
java -version - In Android Studio: File > Project Structure > SDK Location
- Under Gradle Settings, ensure JDK 11+ is selected
- If needed, click Download JDK and select version 11 or higher
- Click Apply and restart Android Studio
Unable to download dependencies
Unable to download dependencies
- Check your internet connection
- Verify repository URLs in
settings.gradle.kts:1-23 - If behind a corporate proxy, configure proxy settings:
- File > Settings > Appearance & Behavior > System Settings > HTTP Proxy
- Try File > Invalidate Caches > Invalidate and Restart
- Delete
~/.gradle/cachesand sync again
Android Gradle Plugin version error
Android Gradle Plugin version error
gradle/libs.versions.toml:2:- Ensure Android Studio is up to date (Hedgehog or later)
- Check Gradle wrapper version in
gradle/wrapper/gradle-wrapper.properties - AGP 9.0.1 requires Gradle 8.0 or later
- Update if necessary: File > Project Structure > Project > Gradle Version
Emulator fails to start
Emulator fails to start
- Check virtualization is enabled in BIOS (Intel VT-x or AMD-V)
- On Windows, ensure Hyper-V is disabled if using HAXM
- Increase RAM allocated to AVD (2GB minimum, 4GB recommended)
- Try creating a new AVD with a different system image
- Check disk space (emulators require 5-10GB free space)
Build succeeds but app crashes on launch
Build succeeds but app crashes on launch
- Check Logcat for stack traces
- Verify device/emulator is running API 29 or higher (TechSales minSdk)
- Ensure system images include Google APIs if needed
- Try Build > Clean Project then rebuild
- Check AndroidManifest.xml:1 for configuration errors