Hi He Ke,

I followed your steps.
Downloaded crosswalk-17.46.449.1.aar
<https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/latest/crosswalk-17.46.449.1.aar>
file. After download I renamed aar file to crosswalk-lite-17.46.aar and
hosted it on my local maven repository using this command:

mvn install:install-file -Dfile=crosswalk-lite-17.46.aar
-DgroupId=org.xwalk -DartifactId=xwalk_core_library -Dversion=1.0.0.1
-Dpackaging=aar
bck-i-search: mvn

Now in my xwalk.gradle file I made following changes:

repositories {
  mavenLocal()
}

    def xwalkSpec = xwalkVersion
    def liteSpec = org.xwalk:xwalk_core_library:1.0.0.1
    if ((xwalkSpec =~ /:/).count == 1) {
        xwalkSpec = DEFAULT_GROUP_ID + xwalkSpec
    } else if ((xwalkSpec =~ /:/).count == 0) {
        if (xwalkSpec ==~ /\d+/) {
            xwalkSpec = "${xwalkSpec}+"
        }
        xwalkSpec = DEFAULT_GROUP_ID + artifactid + xwalkSpec
    }
    println xwalkSpec

    dependencies {
        compile liteSpec
    }

Before building, I removed my android platform, added again and then
finally build.

Its throwing me following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeDebugResources'.
>
/Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/
1.0.0.1/res/raw/libxwalkcore.so.x86: Error: Duplicate resources:
/Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/
1.0.0.1/res/raw/libxwalkcore.so.x86:raw/libxwalkcore,
/Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/
1.0.0.1/res/raw/libxwalkcore.so.armeabi_v7a:raw/libxwalkcore


PFA log file.


*Niraj Chauhan*
[email protected]

*GreyKite*
http://www.greykite.com

On Mon, Jan 11, 2016 at 11:00 AM, He, Ke <[email protected]> wrote:

> Hi,
>
> Thanks for your attention to crosswalk project. The crosswalk-lite support
> for cordova is still ongoing, So currently it cannot be integrated easily
> by running “cordova plug add” command. we plan to finish it by Q1 2016.
> Before that we cannot guarantee the crosswalk-lite is stable.
>
> Only for experimental purpose you can integrate crosswalk-lite manually as
> below:
>
> 1)       Follow the
> https://crosswalk-project.org/documentation/cordova/dordova_4.html ,
> create your helloworld.apk for example.  Now the crosswalk(not
> crosswalk-lite) is integrated.
>
> 2)       Change the crosswalk into crosswalk-lite:  from the folder
> helloworld/plugins/, find the .…/xwalk.gradle and open it. You can find the
> maven url is set as https://download.01.org/crosswalk/..../maven2/,  this
> url is for crosswalk, not crosswalk-lite, the maven repo setup for
> crosswalk-lite is still ongoing. So you have to set up a maven repo for
> crosswalk-lite.
>
> 3)       From
> https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/
> you can find all versions of crosswalk-lite release. Download the
> crosswalk-15.44.397.7.aar(maybe it should be named as
> crosswalk-lite-15.xxxx).   create your maven repo.
>
> 4)       Edit the xwalk.gradle file:
>
> Change the maven url as your new created maven repo url.  In
> “Repositories{ maven{ xxx }}
>
> Change “compile xwalkSpec” into “compile liteSpec”, add the def of
>  liteSpec based on your maven repo:
>
> “def liteSpec = org.xwalk:xwalk_core_library:1.0.0.1 ” for example.
>
>       Then rebuild your app, done.
>
>
>
> Best Regards,
>
> He, Ke
>
>
>
>
>
>
>
> *From:* Crosswalk-help [
> mailto:[email protected]
> <[email protected]>] *On Behalf Of *Niraj
> Chauhan
> *Sent:* Friday, January 08, 2016 7:10 PM
> *To:* [email protected]
> *Subject:* [Crosswalk-help] Crosswalk Lite With Cordova
>
>
>
> Hi,
>
> Is there any way to integrate crosswalk lite with cordova. This wiki
> <https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-Project-Lite>
> does not help, is there any better tutorial available on internet?
>
> Thank you
>
>
> * Niraj Chauhan*
> [email protected]
>
> *GreyKite*
> http://www.greykite.com
>

Attachment: error.log
Description: Binary data

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to