If you are using phonegap to build your moodle mobile 3.4.2 and below you will notice that it has started to throw some errors when trying to build the app. This is caused by recent plugin upgrade done by adobe which makes some some plugins on Moodle mobile classic outdated. To fix this error, follow the steps below
- Open config.xml and paste the code below anywhere on the file
<gap:plugin name="cordova-android-support-gradle-release" spec="github.com/dpa99c/cordova-android-support-gradle-release"> <variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
- Find <preference name=”android-targetSdkVersion” value=“19” /> and replace it with
<preference name="android-targetSdkVersion" value="27" />
- Commit the changes then update your code on phonegap then build your project.