1 Reply Latest reply on Jun 10, 2017 11:01 AM by kerrishotts

    From cli-6.2.0 to 6.5.0 phonegap does not compile my app

    isaiass18

      I have no idea what happens, this is my log when compiling:

       

      Build Date: 2017-06-10 07:41:51 +0000

      Subproject Path: CordovaLib

      Configuration on demand is an incubating feature.

      null

      org.xwalk:xwalk_core_library:19+

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preReleaseBuild UP-TO-DATE

      :checkReleaseManifest

      :preDebugBuild 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

      :prepareComAndroidSupportCardviewV72340Library

      :prepareComAndroidSupportCustomtabs2340Library

      :prepareComAndroidSupportSupportCompat2600Alpha1Library

      :prepareComAndroidSupportSupportCoreUi2600Alpha1Library

      :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library

      :prepareComAndroidSupportSupportFragment2600Alpha1Library

      :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42600Alpha1Library

      :prepareComFacebookAndroidFacebookAndroidSdk4141Library

      :prepareComGoogleAndroidGmsPlayServicesAuth1026Library

      :prepareComGoogleAndroidGmsPlayServicesAuthBase1026Library

      :prepareComGoogleAndroidGmsPlayServicesBase1026Library

      :prepareComGoogleAndroidGmsPlayServicesBasement1026Library

      :prepareComGoogleAndroidGmsPlayServicesGcm1026Library

      :prepareComGoogleAndroidGmsPlayServicesIdentity1026Library

      :prepareComGoogleAndroidGmsPlayServicesIid1026Library

      :prepareComGoogleAndroidGmsPlayServicesTasks1026Library

      :prepareOrgXwalkXwalk_core_library19495145Library

      :prepareProjectCordovaLibUnspecifiedReleaseLibrary

      :prepareReleaseDependencies

      :compileReleaseAidl

      :compileReleaseRenderscript

      :generateReleaseBuildConfig

      :mergeReleaseShaders

      :compileReleaseShaders

      :generateReleaseAssets

      :mergeReleaseAssets

      :createXwalkCommandLineFileRelease

      :generateReleaseResValues

      :generateReleaseResources

      :mergeReleaseResources

      :processReleaseManifest

      :processReleaseResources

      :generateReleaseSources

      :incrementalReleaseJavaCompilationSafeguard

      :compileReleaseJavaWithJavac

      :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      /project/src/org/crosswalk/engine/XWalkWebViewEngine.java:55: error: XWalkWebViewEngine is not abstract and does not override abstract method evaluateJavascript(String,ValueCallback<String>) in CordovaWebViewEngine

      public class XWalkWebViewEngine implements CordovaWebViewEngine {

        ^

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: /project/src/com/adobe/phonegap/push/PushPlugin.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

      1 error

      :compileReleaseJavaWithJavac FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':compileReleaseJavaWithJavac'.

      > 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: 8.491 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.

      /project/src/org/crosswalk/engine/XWalkWebViewEngine.java:55: error: XWalkWebViewEngine is not abstract and does not override abstract method evaluateJavascript(String,ValueCallback<String>) in CordovaWebViewEngine

      public class XWalkWebViewEngine implements CordovaWebViewEngine {

        ^

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: /project/src/com/adobe/phonegap/push/PushPlugin.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

      1 error

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':compileReleaseJavaWithJavac'.

      > 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)

        • 1. Re: From cli-6.2.0 to 6.5.0 phonegap does not compile my app
          kerrishotts Adobe Community Professional

          When you update your CLI, you will usually need to update some plugins. Best guess here is that you're using an older version of the Crosswalk plugin and need to bump the version #. OTH, if you're using the most recent version, you can try a version or two previous just in case the issue is a recent regression.

           

          (Side note: Crosswalk is EOL. If you're targeting Android 5+, you should be able to do without.)