Hello everyone,
Based on the Moodle docs, I have set up a development environment for Moodle Mobile. Earlier I was able to compile and take the build successfully (version 4.0.1). However, now if I clone the latest code (version 4.1.0-dev) I am getting errors while executing npm run prod:android.
I tried to execute the same command in the 4.0.1 version and there I was able to take the build successfully.
The following are the errors:
> Task :CordovaLib:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
BUILD FAILED in 2m 55s
29 actionable tasks: 29 executed
Command failed with exit code 1: /home/moodle/Moodle_Mobile_Dev_Environment/projects/moodleapp/platforms/android/gradlew cdvBuildDebug -b /home/moodle/Moodle_Mobile_Dev_Environment/projects/moodleapp/platforms/android/build.gradle
─────────────────────────────────────────────────
Ionic CLI update available: 6.19.0 → 6.20.4
Run npm i -g @ionic/cli to update
─────────────────────────────────────────────────
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
Thanks in advance.