You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sys/android/README.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,34 +13,32 @@ work. If you're running Windows you're on your own.
13
13
- Install JDK 8. Required by Android SDK manager.
14
14
- Install `bison` and `flex`. Used by the native nethack build.
15
15
- 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.
18
17
19
18
### 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"`
24
23
25
24
26
25
## Build
27
26
28
27
### Build the native nethack library
29
28
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`
35
34
36
35
### Build the Android application
37
36
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!
0 commit comments