Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2296

Phonegap No more able to build the apps even with the original moodlemobile-phonegapbuild

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: Phonegap Build
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      The new phone gap (as they have updated the system ) is no more building any app from the github . I have tried it even with the official moodlemobile-phonegapbuild repository. (I have followed instructions for separate android and ios branch too.) Please check the log file of phone gap for android build  below and suggest the resolution  for the issue.

      Build Date: 2017-11-25 14:25:00 +0000 -------------------------------------------------------------------------------- PLUGIN OUTPUT -------------------------------------------------------------------------------- Fetching plugin "cordova-plugin-camera" via npm Installing "cordova-plugin-camera" at "3.0.0" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-plugin-camera' for android Fetching plugin "cordova-plugin-media-capture" via npm Installing "cordova-plugin-media-capture" at "2.0.0" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-plugin-media-capture' for android Fetching plugin "cordova-plugin-device" via npm Installing "cordova-plugin-device" at "1.1.7" for android Fetching plugin "cordova-plugin-file" via npm Installing "cordova-plugin-file" at "5.0.0" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-plugin-file' for android Fetching plugin "cordova-plugin-file-transfer" via npm Installing "cordova-plugin-file-transfer" at "1.7.0" for android Plugin dependency "cordova-plugin-file@5.0.0" already fetched, using that version. Installing "cordova-plugin-file" at "5.0.0" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-plugin-file' for android Fetching plugin "cordova-plugin-globalization" via npm Installing "cordova-plugin-globalization" at "1.0.8" for android Fetching plugin "cordova-plugin-inappbrowser" via npm Installing "cordova-plugin-inappbrowser" at "1.7.2" for android Fetching plugin "cordova-plugin-network-information" via npm Installing "cordova-plugin-network-information" at "1.3.4" for android Fetching plugin "cordova-plugin-statusbar" via npm Installing "cordova-plugin-statusbar" at "2.3.0" for android Fetching plugin "cordova-plugin-whitelist" via npm Installing "cordova-plugin-whitelist" at "1.3.3" for android This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do not need this plugin since the whitelist will be built in. Fetching plugin "cordova-plugin-splashscreen" via npm Installing "cordova-plugin-splashscreen" at "4.1.0" for android Fetching plugin "cordova-universal-clipboard" via npm Installing "cordova-universal-clipboard" at "0.1.0" for android Fetching plugin "nl.kingsquare.cordova.background-audio" via npm Installing "nl.kingsquare.cordova.background-audio" at "1.0.1" for android Fetching plugin "phonegap-plugin-push@1.9.2" via npm Installing "phonegap-plugin-push" at "1.9.2" for android Subproject Path: CordovaLib Fetching plugin "cordova-plugin-customurlscheme" via npm Installing "cordova-plugin-customurlscheme" at "4.3.0" for android Fetching plugin "ionic-plugin-keyboard" via npm Installing "ionic-plugin-keyboard" at "2.2.1" for android Fetching plugin "cordova-plugin-zip" via npm Installing "cordova-plugin-zip" at "3.1.0" for android Plugin dependency "cordova-plugin-file@5.0.0" already fetched, using that version. Installing "cordova-plugin-file" at "5.0.0" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-plugin-file' for android Fetching plugin "cordova-plugin-local-notifications-mm" via npm Installing "cordova-plugin-local-notifications-mm" at "1.0.6" for android Plugin dependency "cordova-plugin-device@1.1.7" already fetched, using that version. Dependent plugin "cordova-plugin-device" already installed on android. Fetching plugin "cordova-plugin-app-event" via npm Installing "cordova-plugin-app-event" at "1.2.1" for android Subproject Path: CordovaLib Your support is needed. If you use the local-notification plugin please support us in order to ensure further development. https://github.com/katzer/cordova-plugin-local-notifications#supporting Thank you! Fetching plugin "https://github.com/Tunts/WebIntent.git" via git clone Using shallow clone Repository "https://github.com/Tunts/WebIntent.git" checked out to git ref "master" at "15fcb4e". Installing "net.tunts.webintent" at "0.2.1" for android Fetching plugin "https://github.com/ti8m/DocumentHandler.git" via git clone Using shallow clone Repository "https://github.com/ti8m/DocumentHandler.git" checked out to git ref "master" at "f501154". Installing "ch.ti8m.documenthandler" at "0.2.2" for android -------------------------------------------------------------------------------- COMPILE OUTPUT -------------------------------------------------------------------------------- Subproject Path: CordovaLib Configuration on demand is an incubating feature. Incremental java compilation is an incubating feature. :preBuild UP-TO-DATE :preDebugBuild UP-TO-DATE :checkDebugManifest :preReleaseBuild UP-TO-DATE :CordovaLib:preBuild UP-TO-DATE :CordovaLib:preDebugBuild UP-TO-DATE :CordovaLib:checkDebugManifest :CordovaLib:prepareDebugDependencies :CordovaLib:compileDebugAidl :CordovaLib:compileDebugNdk UP-TO-DATE :CordovaLib:compileLint :CordovaLib:copyDebugLint UP-TO-DATE :CordovaLib:mergeDebugShaders :CordovaLib:compileDebugShaders :CordovaLib:generateDebugAssets :CordovaLib:mergeDebugAssets :CordovaLib:mergeDebugProguardFiles :CordovaLib:packageDebugRenderscript UP-TO-DATE :CordovaLib:compileDebugRenderscript :CordovaLib:generateDebugResValues :CordovaLib:generateDebugResources :CordovaLib:packageDebugResources :CordovaLib:processDebugManifest :CordovaLib:generateDebugBuildConfig :CordovaLib:processDebugResources :CordovaLib:generateDebugSources :CordovaLib:incrementalDebugJavaCompilationSafeguard :CordovaLib:compileDebugJavaWithJavac :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processDebugJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForDebug :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug :CordovaLib:mergeDebugJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForDebug :CordovaLib:transformNative_libsWithSyncJniLibsForDebug :CordovaLib:bundleDebug :CordovaLib:preReleaseBuild UP-TO-DATE :CordovaLib:checkReleaseManifest :CordovaLib:prepareReleaseDependencies :CordovaLib:compileReleaseAidl :CordovaLib:compileReleaseNdk UP-TO-DATE :CordovaLib:copyReleaseLint UP-TO-DATE :CordovaLib:mergeReleaseShaders :CordovaLib:compileReleaseShaders :CordovaLib:generateReleaseAssets :CordovaLib:mergeReleaseAssets :CordovaLib:mergeReleaseProguardFiles :CordovaLib:packageReleaseRenderscript UP-TO-DATE :CordovaLib:compileReleaseRenderscript :CordovaLib:generateReleaseResValues :CordovaLib:generateReleaseResources :CordovaLib:packageReleaseResources :CordovaLib:processReleaseManifest :CordovaLib:generateReleaseBuildConfig :CordovaLib:processReleaseResources :CordovaLib:generateReleaseSources :CordovaLib:incrementalReleaseJavaCompilationSafeguard :CordovaLib:compileReleaseJavaWithJavac :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processReleaseJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForRelease :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease :CordovaLib:mergeReleaseJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForRelease :CordovaLib:transformNative_libsWithSyncJniLibsForRelease :CordovaLib:bundleRelease :prepareComAndroidSupportSupportCompat2600Alpha1Library :prepareComAndroidSupportSupportCoreUi2600Alpha1Library :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library :prepareComAndroidSupportSupportFragment2600Alpha1Library :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library :prepareComAndroidSupportSupportV132340Library :prepareComAndroidSupportSupportV42600Alpha1Library :prepareComGoogleAndroidGmsPlayServicesBase980Library :prepareComGoogleAndroidGmsPlayServicesBasement980Library :prepareComGoogleAndroidGmsPlayServicesGcm980Library :prepareComGoogleAndroidGmsPlayServicesIid980Library :prepareComGoogleAndroidGmsPlayServicesTasks980Library :prepareMeLeolinShortcutBadger1111Library :prepareProjectCordovaLibUnspecifiedDebugLibrary :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugResValues :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResourcesWarning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest. :generateDebugSources :incrementalDebugJavaCompilationSafeguard :compileDebugJavaWithJavac :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors :compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * 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: 6.12 secs Error: /project/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest. /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:877:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

       

       

      https://build.phonegap.com/apps/2902044/logs/android/build/

       

       

      https://prnt.sc/hf3jew

       

       

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            govindsoni Govind Soni
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: