Get started quickly
This guide will help you clone, build, and run the TechSales Android application on your development machine in just a few minutes.Prerequisites
Before you begin, make sure you have the following installed:- Android Studio Hedgehog (2023.1.1) or later
- Java Development Kit (JDK) 11 or higher
- Android SDK with API level 29 or higher
- Git for cloning the repository
TechSales requires a minimum SDK version of 29 (Android 10) and targets SDK 36. Make sure you have the appropriate SDK platforms installed in Android Studio.
Setup steps
Open in Android Studio
Launch Android Studio and select Open an Existing Project. Navigate to the cloned
TechSales directory and click OK.Android Studio will automatically detect the project structure and begin syncing Gradle files.Wait for Gradle sync
Android Studio will automatically sync the project dependencies. This may take a few minutes on the first run as it downloads:
- Android Gradle Plugin 9.0.1
- AndroidX AppCompat 1.6.1
- Material Components 1.10.0
- AndroidX Activity 1.8.0
- ConstraintLayout 2.1.4
- Testing libraries (JUnit, Espresso)
Configure Android SDK
Ensure you have the required SDK platforms installed:
- Go to Tools > SDK Manager
- Under SDK Platforms, check that Android API 36 is installed
- Under SDK Tools, verify that Android SDK Build-Tools is installed
- Click Apply if any installations are needed
Run the application
You can run TechSales on an emulator or physical device:Using an Emulator:
- Click Device Manager in Android Studio
- Create a new virtual device (Pixel 7 or similar recommended)
- Select a system image with API 29 or higher
- Click the Run button (green triangle) in the toolbar
- Enable Developer Options on your Android device
- Enable USB Debugging
- Connect your device via USB
- Select your device from the device dropdown
- Click the Run button
Verify the app is running
Once the build completes, the TechSales app will launch on your device or emulator. You should see:
- The app icon on the home screen and app drawer
- The main activity displaying “Hello World!” in the center
- Edge-to-edge display with proper window insets handling
- Material Design theming applied
Project configuration
TechSales is configured with the following settings inapp/build.gradle.kts:14-18:
Key configuration details
Application ID
com.teamtech.techsales - The unique identifier for the app on Android devices and Google PlayMin SDK
API 29 (Android 10) - Supports 87% of devices worldwide
Target SDK
API 36 - Latest Android features and optimizations
Java Version
Java 11 - Modern language features and improved performance
Main activity
The app launches withMainActivity.java:11, which implements:
- EdgeToEdge display for immersive full-screen experience
- Window insets handling to properly pad content around system UI
- Material Design integration through AppCompatActivity
Build variants
TechSales includes standard Android build variants configured inapp/build.gradle.kts:23-31:
- Debug: Development builds with debugging enabled
- Release: Production builds with ProGuard optimization disabled (can be enabled for production)
Troubleshooting
Gradle sync fails
Gradle sync fails
If Gradle sync fails:
- Check your internet connection (required for downloading dependencies)
- Verify JDK 11 or later is configured in Android Studio (File > Project Structure > SDK Location)
- Try File > Invalidate Caches > Invalidate and Restart
- Delete the
.gradlefolder in your project and sync again
SDK not found error
SDK not found error
If you see SDK-related errors:
- Open Tools > SDK Manager
- Install Android API 36 under SDK Platforms
- Install Android SDK Build-Tools under SDK Tools
- Sync the project again
App crashes on launch
App crashes on launch
If the app crashes immediately:
- Check the Logcat output in Android Studio for error messages
- Verify your device/emulator is running Android 10 (API 29) or higher
- Clean and rebuild: Build > Clean Project, then Build > Rebuild Project
Java version mismatch
Java version mismatch
TechSales requires Java 11. If you encounter version issues:
- Go to File > Project Structure > SDK Location
- Set the JDK location to JDK 11 or later
- Verify the
gradle.propertiesfile doesn’t override Java version - Sync the project
Next steps
Now that you have TechSales running, you can:Explore the code
Learn about the app architecture and project structure
Start developing
Begin building features and customizing the app
Run tests
Execute unit tests and instrumented tests
Build for release
Create production builds for distribution