Skip to content

Commit 9891dc6

Browse files
author
VibePocket User
committed
docs: Add Android SDK setup instructions
1 parent 7a29268 commit 9891dc6

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

SETUP_ANDROID_SDK.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Android SDK Setup Instructions
2+
3+
## Quick Setup (for this environment)
4+
5+
The build requires Android SDK which needs to be installed manually. Here are the options:
6+
7+
## Option 1: Install via Android Studio (Recommended)
8+
9+
1. Download and install Android Studio from https://developer.android.com/studio
10+
2. Open Android Studio → Configure → SDK Manager
11+
3. Install Android SDK Platform 34 (or version specified in build.gradle)
12+
4. Set ANDROID_HOME environment variable:
13+
```bash
14+
export ANDROID_HOME=$HOME/Android/Sdk
15+
export PATH=$PATH:$ANDROID_HOME/platform-tools
16+
```
17+
18+
## Option 2: Install Command Line Tools Only
19+
20+
```bash
21+
# Create SDK directory
22+
mkdir -p ~/Android/Sdk
23+
24+
# Download command line tools (manual download required)
25+
# Visit: https://developer.android.com/studio#command-tools
26+
# Download: commandlinetools-linux-XXXXX_latest.zip
27+
28+
# Extract to proper location
29+
cd ~/Android/Sdk
30+
unzip commandlinetools-linux-XXXXX_latest.zip
31+
mkdir -p cmdline-tools
32+
mv cmdline-tools latest
33+
mv latest cmdline-tools/
34+
35+
# Accept licenses and install platform
36+
export ANDROID_HOME=$HOME/Android/Sdk
37+
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
38+
39+
yes | sdkmanager --licenses
40+
sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0"
41+
```
42+
43+
## Option 3: Use Existing SDK (if available)
44+
45+
If you have Android SDK installed elsewhere:
46+
47+
```bash
48+
# Set ANDROID_HOME to existing SDK location
49+
export ANDROID_HOME=/path/to/android/sdk
50+
51+
# Or create local.properties file
52+
echo "sdk.dir=/path/to/android/sdk" > local.properties
53+
```
54+
55+
## Verify Setup
56+
57+
```bash
58+
# Check ANDROID_HOME
59+
echo $ANDROID_HOME
60+
61+
# Check SDK tools
62+
ls $ANDROID_HOME/platform-tools/adb
63+
64+
# Try building
65+
cd /workspace/unstoppable-wallet-android
66+
./gradlew assembleDebug
67+
```
68+
69+
## Current Status
70+
71+
- ✅ Java 17 installed
72+
- ✅ Gradle wrapper working
73+
- ⚠️ Android SDK needs to be installed
74+
75+
Once Android SDK is installed, run:
76+
```bash
77+
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
78+
export PATH=$PATH:$JAVA_HOME/bin
79+
export ANDROID_HOME=$HOME/Android/Sdk
80+
cd /workspace/unstoppable-wallet-android
81+
./deploy.sh
82+
```

0 commit comments

Comments
 (0)