Page 1 of 1

How do I compile Andor's Trail from source?

Posted: Sat May 21, 2022 8:42 am
by Miuzu
Really sorry for the noob question, but I've been struggling for hours trying to find out how.

I've decided to clone the source code, edit some values to make my experience a bit better and I really cannot find a way how to compile it into a .apk file.

I've tried using android-studio and I got emulator working, but I didn't find a way to compile, as it gave me a "no runner" error. Using the files in travis directory didn't really help either since it seems the scripts there are made for debian, and I use arch.

Any help?

Re: How do I compile Andor's Trail from source?

Posted: Sat May 21, 2022 9:32 am
by Nut
Hi Miuzu, welcome to our forum!

good that you asked, because you would have struggled still for days or weeks, because you must know a few things about the compile.

First thing is that the base of the engine is rather old. It is not possible to compile it with actual AndroidStudio versions.
(We don't have anybody in the dev team at the moment who is willing and capable to modernize the engine so that it works with actual AndroidStudio versions. I myself use AndroidStudio 2.2.2 and never updated it)
You would best use rijackson741's saved version: https://www.dropbox.com/s/cy924oqpaori5 ... s.exe?dl=0

Get the official and actual Andors-Trail sources from https://github.com/AndorsTrailRelease/andors-trail.

When you import the project, AndroidStudio will offer to migrate it to Gradle. DON'T do that, it won't work afterwards.

Then you can try to build the APK and get it running. Best use the "Run" option, so that AndroidStudio will compile it first and then launch it.
(I myself use an old phone via USB as target. It must have been prepared for debugging before you can do it.
But you can also use a virtual device on your PC)