Installation de Andors Trail sous Android

Distribution de travail : Lubuntu 22.04 LTS
Téléphone portable : Motorila 34G 5G
Android : 13

Liens :
https://github.com/AndorsTrailRelease/andors-trail

1/ Création du répertoire de travail.

util01@station40:~$ mkdir -p ANDROID/ANDORSTRAIL
util01@station40:~$ cd ANDROID/ANDORSTRAIL/
util01@station40:~/ANDROID/ANDORSTRAIL$ 

2/ Téléchargement du code source de Andors Trail.

util01@station40:~/ANDROID/ANDORSTRAIL$ wget https://github.com/AndorsTrailRelease/andors-trail/archive/refs/tags/v0.8.11.tar.gz

3/ Décompression de l'archive.

util01@station40:~/ANDROID/ANDORSTRAIL$ tar xvfz v0.8.11.tar.gz 
util01@station40:~/ANDROID/ANDORSTRAIL$ cd andors-trail-0.8.11/AndorsTrail
util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ 

4/ Export du répertoire du Java SDK.

util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ export ANDROID_SDK_ROOT=/home/util01/Android/Sdk/

5/ Changement de droit pour le fichier de compilation.

util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ chmod +x gradlew

6/ Compilation.

util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ ./gradlew assembledebug
Downloading https://services.gradle.org/distributions/gradle-8.4-bin.zip
............10%............20%.............30%............40%.............50%............60%.............70%............80%.............90%............100%

Welcome to Gradle 8.4!

Here are the highlights of this release:
 - Compiling and testing with Java 21
 - Faster Java compilation on Windows
 - Role focused dependency configurations creation

For more details see https://docs.gradle.org/8.4/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :app
WARNING: The option setting 'android.defaults.buildfeatures.buildconfig=true' is deprecated.
The current default is 'false'.
It will be removed in version 9.0 of the Android Gradle plugin.
You can resolve this warning in Android Studio via `Refactor` > `Migrate BuildConfig to Gradle Build Files`
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

> Task :app:processDebugMainManifest
package="com.gpl.rpg.AndorsTrail" found in source AndroidManifest.xml: /home/util01/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail/app/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.gpl.rpg.AndorsTrail" from the source AndroidManifest.xml: /home/util01/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail/app/src/main/AndroidManifest.xml.

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL in 10m
33 actionable tasks: 33 executed
util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ 

7/ Vérification.

util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ ls -l app/build/outputs/apk/debug/
total 82000
-rw-r--r-- 1 util01 www-data 83957648 oct.  29 21:19 app-debug.apk
-rw-r--r-- 1 util01 www-data      415 oct.  29 21:19 output-metadata.json
util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ 

8/ Renommage du fichier Apk.

util01@station40:~/ANDROID/ANDORSTRAIL/andors-trail-0.8.11/AndorsTrail$ mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/andorstrail.apk

9/ Copier le fichier 'andorstrail.apk' vers le téléphone portable.

10/ Installer le jeu.

11/ Et jouez !!

at01.jpg