# Android

## **Android Development Environment Setup**

{% hint style="info" %} <i class="fa-bullhorn">:bullhorn:</i> NOTE :\
Before launching the app, ensure you have correctly set up the ADMIN LARAVEL and have added all necessary data through the admin panel.
{% endhint %}

### **Android Development Setup**

Follow these steps to ensure the Android development environment is correctly set up:<br>

1. <mark style="color:$success;">**Install Java Development Kit (JDK)**</mark>

   Install **JDK 17 or later** to support Android development. Download it from the official Oracle site:

   * [Download JDK 17 (Oracle)](https://www.oracle.com/in/java/technologies/downloads/)<br>

2. <mark style="color:$success;">**Install Android Studio**</mark>

   Download and install the latest stable version of **Android Studio** (recommended: Android Studio Giraffe for 2025 or Android Studio Flamingo for 2024). You can download the appropriate version based on your system from the links below:

   * [Android Studio Archive (All Versions)](https://developer.android.com/studio?gad_source=1\&gclid=CjwKCAjwp8--BhBREiwAj7og15Yz4C3RTegzMWv6Z5aZm_pSgP1QGWyGEayAKsCvjuhPE3l86IfeGxoCfokQAvD_BwE\&gclsrc=aw.ds)<br>

3. <mark style="color:$success;">**Set Up Android SDK**</mark>

   Ensure that you have the Android SDK installed. You can check and install it in Android Studio by going to **File > Settings > System Settings > Android SDK**.

   * [Set Up Android SDK in Android Studio](https://developer.android.com/studio#downloads)<br>

4. <mark style="color:$success;">**Install Specific Node.js, npm, and nvm Versions**</mark><br>

   For React Native and other development tools, you'll need to install **Node.js**, **npm**, and **nvm** (Node Version Manager). Here's how to set them up:<br>

   * **Install Node Version Manager (nvm):**

     Download the [nvm-setup.zip](https://github.com/coreybutler/nvm-windows/releases) for Windows from the official GitHub repository, and run the `nvm-setup.exe` to install nvm.<br>

   * **Install a Specific Version of Node.js :**

     The project requires a minimum Node.js version of 20. To install a specific version, such as **Node.js v20**, run the following command. **For example, to install \*\*Node.js v20\*\*  or  Node.js v22\*\*  run:**<br>

     ```html
     node --version
     ```

     ```html
     v20.x.x   ,

     v22.x.x
     ```

   * **specific version of nvm :**<br>

     ```html
     nvm install 0.39.7
     ```

   * **Install Specific npm Version:**<br>

     If you want to install a specific version of npm, run the following command after installing Node.js. For example, to install \*\*npm v10.9.2\*\*, run:<br>

     ```html
     npm install -g npm@10.9.2
     ```

   * **Verify Specific Node.js and npm Versions:**

     After installation, verify that Node.js and npm are correctly installed by running these commands:<br>

     ```html
     node -v
     ```

     This will display the installed Node.js version (e.g., v22.11.0).<br>

     ```html
     npm -v
     ```

     This will display the installed npm version (e.g., 10.9.2).<br>

5. <mark style="color:$success;">**React Native Project with Specific Version**</mark><br>

   Follow these steps to create a new React Native project using a specific version (e.g., version 0.82.1):

   * **Project with Specific Version**<br>

     Run the following command to create a new React Native project with version 0.77.3 :<br>

     ```html
     npx react-native0.82.1 init MyReactNativeApp
     ```

   * **Verify React Native Version**

     To verify the React Native version installed in your project, use the following command:<br>

     ```html
     npm ls react-native 
     ```

6. <mark style="color:$success;">**Kotlin Version Setup**</mark>&#x20;

   * Set Kotlin version in `android/build.gradle`:

   ```gradle
   kotlinVersion = "2.0.21"
   ```

   * Enable New Architecture:

   ```properties
   newArchEnabled=true
   ```
