infil00p / cordova-crosswalk-engine

(UNMAINTAINED) Proof of Concept Third Party Web Engine using Crosswalk
Apache License 2.0
45 stars 438 forks source link

cordova build fails #17

Open epegzz opened 9 years ago

epegzz commented 9 years ago

After having successfully created builds with cordova build android and this plugin installed before, now after some weeks the build fails:

FAILURE: Build failed with an exception.

* Where:
Script '/path/to/cordova/platforms/android/cordova-plugin-crosswalk-web
view/beta-xwalk.gradle' line: 86

* What went wrong:
A problem occurred configuring root project 'android'.
> Cannot add task ':createXwalkCommandLineFileArmv7Debug' as a task with that name already exists.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log ou
tput.
fujunwei commented 9 years ago

I can't reproduce the error. It would be helpful if you could describe test steps, share your partial code or simplify your usage scenario to reproduce the issue.

cyclonmaster-zz commented 9 years ago

I can compile ok with crosswalk 13 and below, but failed with 14.

In my config.xml

Also tested:

gregkeys commented 8 years ago

I experienced something similar when working between two branches, I assume the platform files got corrupted did a platform rm android and a platform add android and it fixed the issue.

cyclonmaster-zz commented 8 years ago

My temporary solution is by commenting some lines in corsswalk plugin. But the new version seems fix it.

You can try update crosswalk plugin by remove and add the plugin again.

cordova plugin rm cordova-plugin-crosswalk-webview --save cordova plugin add cordova-plugin-crosswalk-webview --save

Then use 14+ as webkit preference in config.xml

kjakub commented 8 years ago

removing platform and adding works for me

epegzz commented 8 years ago

The issue does not happen for me anymore in the newest version :dancers:

hamidabdulmalik commented 8 years ago

Now I download crosswalk all fine, but then I get this at the end:

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 7.563 secs

/home/hamid/Projects/MedCloud/patients/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /home/hamid/Projects/MedCloud/patients/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/hamid/Projects/MedCloud/patients/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true ERROR running one or more of the platforms: Error: /home/hamid/Projects/MedCloud/patients/platforms/android/cordova/run: Command failed with exit code 1 You may not have the required environment or OS to run this project

jengmun91 commented 7 years ago

Hi all, I have been stuck for a week.. I'm still having the same issue when i have cordova plugin rm cordova-plugin-crosswalk-webview --save cordova plugin add cordova-plugin-crosswalk-webview --save

Error: /home/nmun/ionic2Folder/NotifyProject/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

Please help.. It will be grateful to get help from you all..Thanks

HarisHamdan commented 7 years ago

@jengmun91 ive got the same problem.. did you got the solution??

jengmun91 commented 7 years ago

@Dora3monz you can try to delete the platform android and add again. or you can update the cordova to the latest version. And you can double check whether you android studio platform, api level and cpu/abi that can support your Application.