Skip to content

Commit 87bd558

Browse files
committed
Updated build instructions
1 parent 46c8607 commit 87bd558

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

sys/android/README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,32 @@ work. If you're running Windows you're on your own.
1313
- Install JDK 8. Required by Android SDK manager.
1414
- Install `bison` and `flex`. Used by the native nethack build.
1515
- Check out NetHack-Android: `git clone https://github.com/gurrhack/NetHack-Android.git`
16-
- Check out ForkFront-Android: `git clone https://github.com/gurrhack/ForkFront-Android.git`
17-
- Create a file called `local.properties` in both NetHack-Android and ForkFront-Android, containing: `sdk.dir=/path/to/android-sdk`. Used by Gradle.
16+
- Create an env variable called `ANDROID_SDK_ROOT` and point it to the android-sdk installation directory. Used by Gradle.
1817

1918
### Install Android build tools
20-
1. Make sure JAVA_HOME points to JDK 8.
21-
2. `cd /path/to/android-sdk/tools/bin`
22-
3. Update the sdk manager: `./sdkmanager --update`. If you get "NoClassDefFoundError" it's because you're not running JDK 8.
23-
4. Install the platform tools: `./sdkmanager --install "platforms;android-30"`
19+
20+
1. `cd /path/to/android-sdk/tools/bin`
21+
2. Update the sdk manager: `./sdkmanager --update`. If you get "NoClassDefFoundError" it's because you're not running JDK 8. Make sure the env variable `JAVA_HOME` points to JDK 8.
22+
3. Install the platform tools: `./sdkmanager --install "platforms;android-30"`
2423

2524

2625
## Build
2726

2827
### Build the native nethack library
2928

30-
1. `cd /path/to/NetHack-Android/sys/android`
31-
2. Open `Makefile.src` and change NDK to the appropriate path.
32-
3. `sh ./setup.sh`
33-
4. `cd ../..`
34-
5. `make install`
29+
1. `cd /path/to/NetHack-Android/sys/android`
30+
2. Open `Makefile.src` and change NDK to the appropriate path.
31+
3. `sh ./setup.sh`
32+
4. `cd ../..`
33+
5. `make install`
3534

3635
### Build the Android application
3736

38-
1. `cd /path/to/NetHack-Android/sys/android`
39-
2. Open `settings.gradle` and edit the path to ForkFront-Android if needed.
40-
3. `./gradlew build`
41-
4. `cd ./build/outputs/apk/debug`
42-
5. Copy the APK file from this directory to your device.
43-
6. On your device: locate the APK file, install it and run!
37+
1. `cd /path/to/NetHack-Android/sys/android`
38+
2. `./gradlew build`
39+
3. `cd ./app/build/outputs/apk/debug`
40+
4. Copy the APK file from this directory to your device.
41+
5. On your device: locate the APK file, install it and run!
4442

4543
---
4644
Happy hacking!

0 commit comments

Comments
 (0)