Ok, Thanks for helping me out, but do let me know as soon as its done.
*Niraj Chauhan* [email protected] *GreyKite* http://www.greykite.com On Tue, Jan 12, 2016 at 12:38 PM, He, Ke <[email protected]> wrote: > Hi, > > Same error happened on my PC. Even delete libxwalkcore.* cannot > resolve this problem. > > In crosswalk, the libxwalkcore.so is placed in JNI folder as a > library, but in crosswalk-lite we set the libxwalkcore.* file in the res > folder as a resource and decompress it in runtime. Seems this difference > brings problems. Sorry, I’ll try to fix it. > > > > Best Regards > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Tuesday, January 12, 2016 2:23 PM > > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > Thanks now I am using version 15.44 but still I am getting the same error. > How do I delete libxwalkcore.* file from aar file? I have not worked that > much in android. Is there any tool available for this? > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 8:36 AM, He, Ke <[email protected]> wrote: > > Hi, Niraj > > I see in your aar it contains libs for both x86 and arm. I guess > that’s why it complains “Error: Duplicate resources”. I’ll follow this bug. > As a workaround, you can delete either libxwalkcore.so.x86 or > libxwalkcore.so.armeabi_v7a in your aar, only keep one lib and try again. > > By the way, the crosswalk-17 is still in testing and bug-fixing. And > the crosswalk-lite for cordova is ongoing, this manual way is only for > experimental purpose. > > > > Best Regards > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Monday, January 11, 2016 11:44 PM > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > 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 > > > > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
