{"id":536,"date":"2018-08-16T09:08:36","date_gmt":"2018-08-16T09:08:36","guid":{"rendered":"https:\/\/www.vibidsoft.com\/blog\/?p=536"},"modified":"2025-05-23T10:06:14","modified_gmt":"2025-05-23T10:06:14","slug":"solution-error-during-build-the-moodle-mobile-app-through-phonegap","status":"publish","type":"post","link":"https:\/\/www.vibidsoft.com\/blog\/solution-error-during-build-the-moodle-mobile-app-through-phonegap\/","title":{"rendered":"Fix PhoneGap Build Error in Moodle App 3.4.2"},"content":{"rendered":"<p>Many moodle developer getting error message at the time of phonegap build of moodle mobile app version 3.4.2.<\/p>\n<p><code>FAILURE: Build failed with an exception.<\/code><\/p>\n<p><code>* What went wrong:<br \/>\nA problem occurred configuring root project 'project'.<br \/>\n&gt; Could not resolve all dependencies for configuration ':_debugApkCopy'.<br \/>\n&gt; Could not find com.android.support:support-v4:27.1.0.<br \/>\nRequired by:<br \/>\nproject :<br \/>\n&gt; Could not find com.android.support:support-v4:27.1.0.<br \/>\nRequired by:<br \/>\nproject :<br \/>\n&gt; Could not find com.android.support:support-v4:27.1.0.<br \/>\nRequired by:<br \/>\nproject : &gt; com.android.support:support-v13:23.4.0<br \/>\n&gt; Could not find com.android.support:support-v4:27.1.0.<br \/>\nRequired by:<br \/>\nproject : &gt; com.google.android.gms:play-services-gcm:9.8.0 &gt; com.google.android.gms:play-services-basement:9.8.0<\/code><\/p>\n<p><code>* Try:<br \/>\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.<\/code><\/p>\n<p><code>BUILD FAILED<\/p>\n<p><\/code><code>Total time: 1.559 secs<br \/>\nCommand finished with error code 1: \/project\/gradlew cdvBuildDebug,-b,\/project\/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true<br \/>\nError: \/project\/gradlew: Command failed with exit code 1 Error output:<br \/>\nFAILURE: Build failed with an exception.<\/code><\/p>\n<p>It&#8217;s Simple solution, Just replace<\/p>\n<p id=\"yui_3_17_2_1_1534409457326_100\">&lt;preference name=&#8221;phonegap-version&#8221; value=&#8221;<b id=\"yui_3_17_2_1_1534409457326_105\">cli-6.5.0<\/b>&#8221; \/&gt;<\/p>\n<p>to<\/p>\n<p>&lt;preference name=&#8221;phonegap-version&#8221; value=&#8221;<b>cli-7.1.0<\/b>&#8221; \/&gt;<\/p>\n<p>It will works..!!!<\/p>\n<p>For moodle related queries and <a href=\"https:\/\/www.vibidsoft.com\/moodle-development\">moodle development services<\/a> contact on inquiry@vibidsoft.com or call on +91 70161 48402<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8216;project&#8217;. &gt; Could not resolve all&#8230; <a class=\"more-link\" href=\"https:\/\/www.vibidsoft.com\/blog\/solution-error-during-build-the-moodle-mobile-app-through-phonegap\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[123,95,158],"tags":[4704,97,4700,4702,145,163],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/536"}],"collection":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":4,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":2389,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions\/2389"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media\/537"}],"wp:attachment":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}