Android libraries for compiling the Exodus v3.6.5+ client
Android Compilation
To compile for Android, you must create the folder `C:\android` and place the contents of the "android libs" download inside it.
Also, install the "Mobile development with C++" workload using the Visual Studio Installer.
Then open `android/otclientv8.sln`, go to **Tools > Options > Cross Platform > C++ > Android**, and:
Set Android SDK to `C:\android\android-sdk\build-tools_r30`
Set Android NDK to `C:\android\android-sdk\android-ndk-r23c`
Set Java SE to: `C:\android\android-sdk\jdk8u302-b08`
Set Apache Ant to `C:\android\android-sdk\apache-ant-1.9.7`
Before proceeding:
You might encounter issues or a black screen when running the compiled app on Android (though this is rare). The problem seems to stem from the `data/fonts` folder; try removing it, replacing it with a font folder from another otcv8 build, and recompiling. If this works for you, please report it so we can investigate the issue with that specific folder. Open PowerShell and navigate to the client path (`cd clientPath`):
Run: `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass`. This allows the `create_android_assets.ps1` script to run, compiling `init.lua`, data, mods, modules, and the layout into a single `data.zip` file directly within the `assets` folder inside the `otclientv8` directory.
Run: `.\create_android_assets.ps1`
If for some reason that doesn't work, run: `powershell -ExecutionPolicy Bypass -File .\create_android_assets.ps1`
Select **Release** and **ARM64**.
Build `otclientv8` (select the item with the phone iconānot the folderāin the Visual Studio 2022 Solution Explorer, right-click it, and select **Build**).
The build process generates a few warnings by default (the standard `otcv8` also has these warnings), but the build succeeds and the client runs without errors.
Android Compilation
To compile for Android, you must create the folder `C:\android` and place the contents of the "android libs" download inside it.
Also, install the "Mobile development with C++" workload using the Visual Studio Installer.
Then open `android/otclientv8.sln`, go to **Tools > Options > Cross Platform > C++ > Android**, and:
Set Android SDK to `C:\android\android-sdk\build-tools_r30`
Set Android NDK to `C:\android\android-sdk\android-ndk-r23c`
Set Java SE to: `C:\android\android-sdk\jdk8u302-b08`
Set Apache Ant to `C:\android\android-sdk\apache-ant-1.9.7`
Before proceeding:
You might encounter issues or a black screen when running the compiled app on Android (though this is rare). The problem seems to stem from the `data/fonts` folder; try removing it, replacing it with a font folder from another otcv8 build, and recompiling. If this works for you, please report it so we can investigate the issue with that specific folder. Open PowerShell and navigate to the client path (`cd clientPath`):
Run: `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass`. This allows the `create_android_assets.ps1` script to run, compiling `init.lua`, data, mods, modules, and the layout into a single `data.zip` file directly within the `assets` folder inside the `otclientv8` directory.
Run: `.\create_android_assets.ps1`
If for some reason that doesn't work, run: `powershell -ExecutionPolicy Bypass -File .\create_android_assets.ps1`
Select **Release** and **ARM64**.
Build `otclientv8` (select the item with the phone iconānot the folderāin the Visual Studio 2022 Solution Explorer, right-click it, and select **Build**).
The build process generates a few warnings by default (the standard `otcv8` also has these warnings), but the build succeeds and the client runs without errors.