4 Replies Latest reply on Apr 1, 2016 11:14 AM by RBuster

    Android build error

    RBuster

      I'm getting this error message:

       

      Build Date: 2016-04-01 16:19:37 +0000

      /project/cordova/node_modules/q/q.js:126

        throw e;

        ^

       

      Error: Project contains at least one plugin that requires a system library. This is not supported with ANT. Please build using gradle.

        at /project/cordova/lib/build.js:183:27

        at _fulfilled (/project/cordova/node_modules/q/q.js:798:54)

        at self.promiseDispatch.done (/project/cordova/node_modules/q/q.js:827:30)

        at Promise.promise.promiseDispatch (/project/cordova/node_modules/q/q.js:760:13)

        at /project/cordova/node_modules/q/q.js:574:44

        at flush (/project/cordova/node_modules/q/q.js:108:17)

        at doNTCallback0 (node.js:417:9)

        at process._tickCallback (node.js:346:13)

       

      And I don't know how to proceed. Thanks in advance fro any help.

        • 1. Re: Android build error
          vangroover Adobe Employee

          That error specifies that there is a plugin in your app that required the android app to be compiled with gradle not ant. To specify that you would like the app to be built with gradle add the following to your config.xml:

           

          <preference name="android-build-tool" value="gradle" />

          • 2. Re: Android build error
            RBuster Level 1

            Thanks, vangroover

             

            I could build the app, however, I get another error related to the crosswalk plugin. I'll post it below but I'll delet it if you think that I need to open a new discussion.

             

            Build Date: 2016-04-01 17:11:15 +0000

            Build option --'' not recognized (ignoring).

            Running: /project/gradlew cdvBuildRelease -b /project/build.gradle -Dorg.gradle.daemon=true -PcdvBuildMultipleApks=false

            null

            embedded

             

            FAILURE: Build failed with an exception.

             

            * Where:

            Script '/project/cordova-plugin-crosswalk-webview/gameproject-xwalk.gradle' line: 77

             

            * What went wrong:

            A problem occurred evaluating script.

            > Could not find property 'xwalkMultipleApk' on root project 'project'.

             

            * 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: 2.412 secs

             

            /project/cordova/node_modules/q/q.js:126

              throw e;

              ^

            Error code 1 for command: /project/gradlew with args: cdvBuildRelease,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildMultipleApks= false

            I don't know what that means. Maybe I'm using a wrong plugin.

            • 3. Re: Android build error
              RBuster Level 1

              An extra question: It's better to use crosswalk?