Hi Mickel, Are you trying the latest Crosswalk based Cordova beta version 11.40.277.1? If yes, the root cause is upstream M40 introduces content/public/android/java/res/values-v21/styles.xml which requires android-21 to compile, so android-21 is a must to build crosswalk from build 11.40.268.0, you may see the error log like below:
[aapt] /home/belem/crosswalk/cordova_canary/crosswalk-cordova-11.40.271.1-arm/helloc/CordovaLib/xwalk_core_library/res/values-v21/styles.xml:8: error: Error: Attribute is not public. (at 'android:icon' with value '?android:attr/actionModeShareDrawable'). BUILD FAILED In https://lists.crosswalk-project.org/pipermail/crosswalk-help/2015-January/000718.html , I mentioned that: When you migrate upstream Cordova apps to Crosswalk based Cordova 11.40.*.*, please make sure to check: The android-21 was installed in your Android SDK manager. [project]/platforms/android/project.properties -> target=android-21 [The android-19 will not work anymore] [project]/platforms/android/AndroidManifest.xml -> targetSdkVersion=”21” [The 19 will not work anymore] Our developers are working on “Crosswalk-based Cordova pluggable WebView for Android” which will not require such steps in the migrate an upstream Cordova app guide any more. BR Belem From: Crosswalk-help [mailto:[email protected]] On Behalf Of Mickel Andersson Sent: Tuesday, January 06, 2015 8:20 PM To: [email protected] Subject: [Crosswalk-help] "cordova build android" fails after migrating project from Cordova to Crosswalk Hi! We recently started migrating our existing Cordova app to Crosswalk and have successfully followed most of the steps outlined in this guide https://crosswalk-project.org/documentation/cordova/migrate_an_application.html - "Migrate using command line tools”-part. However, when we get to Step 6 (Build the project in this order…), we encounter an error. Building xwalk_core_library and CordovaLib works fine (no errors at least), but when we try to build for android as we usually do using “cordova build android” we get this: --------------------------------------------------- BUILD FAILED /usr/local/opt/android-sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /usr/local/opt/android-sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details. Total time: 2 seconds /Users/mickel/dev/remente/remente-app/crosswalk/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: ant with args: debug,-f,/Users/mickel/dev/remente/remente-app/crosswalk/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/mickel/dev/remente/remente-app/crosswalk/platforms/android/cordova/build: Command failed with exit code 8 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) ————————————————————————— The error description doesn’t tell me much, so I was hoping you could provide some guidance? Any help would be greatly appreciated! Kind regards, Mickel
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
