Many moodle developer getting error message at the time of phonegap build of moodle mobile app version 3.4.2.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find com.android.support:support-v4:27.1.0.
Required by:
project :
> Could not find com.android.support:support-v4:27.1.0.
Required by:
project :
> Could not find com.android.support:support-v4:27.1.0.
Required by:
project : > com.android.support:support-v13:23.4.0
> Could not find com.android.support:support-v4:27.1.0.
Required by:
project : > com.google.android.gms:play-services-gcm:9.8.0 > com.google.android.gms:play-services-basement:9.8.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.559 secs
Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Error: /project/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

It’s Simple solution, Just replace

<preference name=”phonegap-version” value=”cli-6.5.0” />

to

<preference name=”phonegap-version” value=”cli-7.1.0” />

It will works..!!!

For moodle related queries and moodle development services contact on [email protected] or call on +91 70161 48402