<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Riya Kumari</title>
    <description>The latest articles on DEV Community by Riya Kumari (@riya_kumari_995011174ff8b).</description>
    <link>https://dev.to/riya_kumari_995011174ff8b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3016791%2Fd41b842f-bb05-4887-b055-f9c64289104c.jpg</url>
      <title>DEV Community: Riya Kumari</title>
      <link>https://dev.to/riya_kumari_995011174ff8b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/riya_kumari_995011174ff8b"/>
    <language>en</language>
    <item>
      <title>How to Setup Android SDK without Android Studio</title>
      <dc:creator>Riya Kumari</dc:creator>
      <pubDate>Fri, 04 Apr 2025 16:00:52 +0000</pubDate>
      <link>https://dev.to/riya_kumari_995011174ff8b/how-to-setup-android-sdk-without-android-studio-3g2</link>
      <guid>https://dev.to/riya_kumari_995011174ff8b/how-to-setup-android-sdk-without-android-studio-3g2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
In this guide, we are setting up Android SDK using command-line tools instead of Android Studio. The reason for this approach is to keep the setup lightweight and avoid the overhead of installing a full-fledged IDE. This method is ideal for developers who prefer using VS Code or other code editors and want more control over their development environment. By following these steps, you will be able to set up and configure Android SDK manually for React Native or other mobile development needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Install Node.js&lt;/strong&gt;&lt;br&gt;
Download Node.js from the official website.&lt;/p&gt;

&lt;p&gt;Install using the recommended settings.&lt;/p&gt;

&lt;p&gt;Verify installation using node -v and npm -v.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Install JDK&lt;/strong&gt;&lt;br&gt;
Download JDK-17 version from Openlogic or from any website like Oracle.&lt;/p&gt;

&lt;p&gt;Install and set it up.&lt;/p&gt;

&lt;p&gt;Verify installation using java -version in cmd.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Install Chocolatey&lt;/strong&gt;&lt;br&gt;
Open PowerShell as Administrator.&lt;/p&gt;

&lt;p&gt;Run Set-ExecutionPolicy AllSigned.&lt;/p&gt;

&lt;p&gt;Run this command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1'))&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Close and reopen PowerShell.&lt;br&gt;
&lt;strong&gt;4. Install Android SDK:&lt;/strong&gt;&lt;br&gt;
Install SDK (Command Line Tools) from the Android Studio Website&lt;/p&gt;

&lt;p&gt;Open Command Prompt.&lt;/p&gt;

&lt;p&gt;Run choco install -y android-sdk (Windows).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install required packages using:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sdkmanager — install “platform-tools” “platforms;android-33” “build-tools;33.0.0&lt;/code&gt;”.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Setup Android SDK Directories&lt;/strong&gt;&lt;br&gt;
Create directories: C:\Android\Sdk (Windows).&lt;/p&gt;

&lt;p&gt;Move SDK files to the created directory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Setup ANDROID_HOME Environment Variable&lt;/strong&gt;&lt;br&gt;
Open Environment Variables.&lt;/p&gt;

&lt;p&gt;Click New under System Variables:&lt;/p&gt;

&lt;p&gt;Variable Name: ANDROID_HOME&lt;/p&gt;

&lt;p&gt;Variable Value: C:\Users\YourUser\AppData\Local\Android\Sdk&lt;/p&gt;

&lt;p&gt;Edit Path and add:&lt;/p&gt;

&lt;p&gt;%ANDROID_HOME%\platform-tools&lt;/p&gt;

&lt;p&gt;%ANDROID_HOME%\emulator (if required)&lt;/p&gt;

&lt;p&gt;%ANDROID_HOME%\tools&lt;/p&gt;

&lt;p&gt;%ANDROID_HOME%\tools\bin&lt;/p&gt;

&lt;p&gt;Run sdkmanager — list to check SDK setup. You see like this:&lt;/p&gt;

&lt;p&gt;SDK installed packages&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Connect Android Device:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;7.1. Enable Developer Options on Android&lt;/strong&gt;&lt;br&gt;
Go to Settings &amp;gt; About Phone.&lt;/p&gt;

&lt;p&gt;Tap Build version 7 times to enable Developer Options.&lt;/p&gt;

&lt;p&gt;You see a pop-up “You are now a developer”&lt;/p&gt;

&lt;p&gt;Go to Additional Settings &amp;gt; Developer Options.&lt;/p&gt;

&lt;p&gt;Enable USB Debugging and Install via USB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.2. Connect Android Device via USB&lt;/strong&gt;&lt;br&gt;
Use a USB cable to connect the device.&lt;/p&gt;

&lt;p&gt;Select File Transfer mode from the notification panel(mandatory).&lt;/p&gt;

&lt;p&gt;**7.3. Enable ADB and Verify Connection&lt;br&gt;
**Open Device Manager on Windows and check ADB Interface.&lt;/p&gt;

&lt;p&gt;Run adb devices in the terminal to check the device connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.4. Run React Native App on Physical Device&lt;/strong&gt;&lt;br&gt;
Open VS Code and navigate to your React Native project.&lt;/p&gt;

&lt;p&gt;Run &lt;code&gt;npx react-native start&lt;/code&gt; or &lt;code&gt;npm start&lt;/code&gt;to start Metro bundler.&lt;/p&gt;

&lt;p&gt;Run &lt;code&gt;npx react-native run-android&lt;/code&gt;to launch the app on the device.&lt;/p&gt;

&lt;p&gt;The app should now appear on the connected Android device.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
