Always error on build of mobile app tag v4.1.1

Always error on build of mobile app tag v4.1.1

par hans egon,
Nombre de réponses : 2

Since a few weeks I can not start the moodle app (tag v4.1.1) on the emulator.

node version: v14.21.3

npm: 6.14.18

gradle: 4.4.1

Ubuntu 22.04

android studio: 2022.1.1 Patch 2 / Build #AI-221.6008.13.2211.9619390, built on February 17, 2023

after "npm run dev:android" It always comes the following error:

[cordova] e: /home/david/.gradle/caches/transforms-3/adaf9cac4b199e0779758b8aae901bb4/transformed/jetified-kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.

Can anyone help, please?


Moyenne des évaluations  -
En réponse à hans egon

Re: Always error on build of mobile app tag v4.1.1

par Robert Manthey,
Similar problem here.

Insert the line  <preference name="GradlePluginKotlinVersion" value="1.7.22"/>    to the config.xml and rerun npm build   solved it
En réponse à Robert Manthey

Re: Always error on build of mobile app tag v4.1.1

par Ivan Pavic,
Same issue here, exact same error message!
Tried to add "<preference name="GradlePluginKotlinVersion" value="1.7.22"/>" to the config.xml file but this didn't solve the issue. Anyone found a solution to this?