Hello! So i'm trying to build an Android APK for SRB2 Persona, although when i run srb2bld -ad
or srb2bld --android
it returns with ERROR: Currently building with option --android is not supported with -u/--user. Exiting.
Which OS are you using? Did you try without --user/-u or did you get this message without this option?
then when i go check the Overview tab of this resource, at point 12 it mentions: "Building Android APKs require gradlew script in the path "[SRB2 build path]/android".
And thats what got me intrigued since i have no idea what is a gradlew script,
Gradlew is a script, which its purpose is to prepare and initiate compiling using build tool system called Gradle (srb2bld just triggers it for you).
where to get it, and where the [SRB2 build path] would be.
So uh... I'm kind of in a stalemate right now since i have no idea of what im doing at this point, mostly because i'm an idiot and not really an expert on this.
Is there any way to get this to work?
From SRB2 build that supports building Android APK and most likely it it won't work, if you try to copy Gradle files, including gradlew file, to
android
directory for unsupported SRB2 build. If I remember correctly, SRB2 Persona doesn't have official build Android nor author of build plans to port it to Android.
Keep in mind that if you run
srb2bld -ad/--android
without initial error
ERROR: Currently building with option --android is not supported with -u/--user. Exiting.
, you will get list of only supported builds for Android APK which are:
- SRB2 Android by Lactozilla
- SRB2 Android by bitten2up
- SRB2 Reveries (rphys) by Pastel (formerly Katsy)
- SRB2 Custom (this here you point remote path from Github or Gitlab or local path to build using variable SRB2BLDGITPATH, which must have build supporting gradle files with gradlew file and are included in android directory and of course Android port is maintained by developer of build)
[SRB2 build path] is just path to downloaded build from Github or Gitlab, containing source code, either by you or by srb2bld.
In context of srb2bld, build will be put in path
/home/[your username]/.local/share/srb2bld/builds/[SRB2 build directory]
for Linux,
C:\Users\[your username]\AppData\Roaming\srb2bld\builds\[SRB2 build directory]
for Windows. For custom SRB2 builds it will be in path
/home/[your username]/.local/share/srb2bld/builds/srb2-custom/[SRB2 build directory]
for Linux,
C:\Users\[your username]\AppData\Roaming\srb2bld\builds\[SRB2 build directory\srb2-custom\[SRB2 build directory]
for Windows.