Hi,
     The dialog of installing is expected. It only shows the first time you 
start the app.
      To reduce binary size, in crosswalk-lite we add some flags to 
enable/disable features such as video/audio/ICU/plugins/ etc. It is possible 
that those feature-cuttings break you app. Different users want different flag 
groups, we are considering how to deliver several binaries and how to let user 
configure those flags conveniently.
      You can put a very simple html pages in the www folder, if shows 
successfully, then it means crosswalk-lite was installed successfully but the 
feature-cuttings break your app.

BRs,
He,Ke
From: Niraj Chauhan [mailto:[email protected]]
Sent: Tuesday, January 12, 2016 8:06 PM
To: He, Ke
Cc: [email protected]
Subject: Re: [Crosswalk-help] Crosswalk Lite With Cordova


Hi,

Sorry it was my mistake, I didn't delete lib file from res folder. After 
deleting that build went successful, but on starting the app it showed a dialog 
of crosswalk installing and then just a white splash screen comes, my app 
doesn't shows up. I tried killing and starting app again, but next time only 
white splash screen comes. PFA screenshots
On Jan 12, 2016 4:10 PM, "Niraj Chauhan" 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
I tried again, first I deleted xwalk from my m2 folder, then updated the aar 
file. Updated config xml file(xwalkMultipleApk = false)
Removed android platform and added again in cordova and finally ran build.
Got same error

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<http://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<http://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<http://1.0.0.1/res/raw/libxwalkcore.so.armeabi_v7a:raw/libxwalkcore>
My aar extracted contents screenshot attached.

[cid:ii_ijb9o21i0_152356b86eb2a99a]
​



Niraj Chauhan
[email protected]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Tue, Jan 12, 2016 at 3:41 PM, Niraj Chauhan 
<[email protected]<mailto:[email protected]>> wrote:
Ok let me try and see.


Niraj Chauhan
[email protected]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Tue, Jan 12, 2016 at 3:40 PM, He, Ke 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
     Sorry, my develop-PC is not connected with my laptop now.
     -rw-r--r--  1 Minato  staff    20M Jan 12 12:03 
xwalk_core_library-1.0.0.1.aar
This xwalk_core_library-1.0.0.1.aar is a simple zip format file. In Ubuntu, I 
can open it directly by archive-manager and delete its file.  I guess there are 
also some tools in Mac.  Or you can just unzip it, then delete files, then 
re-zip it, I think this way should be fine too.

BRs,
He,Ke
From: Niraj Chauhan 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, January 12, 2016 6:01 PM

To: He, Ke
Cc: 
[email protected]<mailto:[email protected]>
Subject: Re: [Crosswalk-help] Crosswalk Lite With Cordova

Hi He Ke,
In my maven directory i.e. 
/Users/apple/.m2/repository/org/xwalk/xwalk_core_library/1.0.0.1<http://1.0.0.1>
 I dont see folders of extracted aar file.
My contents are:
-rw-r--r--  1 Minato  staff   199B Jan 12 12:06 _remote.repositories
-rw-r--r--  1 Minato  staff    20M Jan 12 12:03 xwalk_core_library-1.0.0.1.aar
-rw-r--r--  1 Minato  staff   502B Jan 12 12:06 xwalk_core_library-1.0.0.1.pom
How do I remove file from aar file?
If you have already tested then can you send me your aar file?



Niraj Chauhan
[email protected]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Tue, Jan 12, 2016 at 3:20 PM, He, Ke 
<[email protected]<mailto:[email protected]>> wrote:
Hi, Niraj,
      This error only reproduces when you want to build multiple apks(for both 
arm and x86).
      Here is a workaround solution:

1)       In you cordova app directory, open the config.xml,  change the value 
of “xwalkMultipleApk” into “false”.

2)       Edit the crosswalk-lite.aar file,  aar is simple zip format.  It is OK 
If you edit directly in the maven repo folder, in my pc it is 
~/.m2/repository/org/xwalk/….,  or you can edit the aar first then reinstall. 
Assume you want the apk for arm:  delete the x86 folder in the aar/jni/  ,  
delete the file libxwalkcore.so.x86 in aar/res/raw/ .

3)       Run cordova clean,  cordova build.  Done.

4)       If you want apk for x86, then delete those armeabi-v7a contents and 
keep x86 contents.


Best Regards
He,Ke

From: Niraj Chauhan 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, January 12, 2016 3:18 PM

To: He, Ke
Cc: 
[email protected]<mailto:[email protected]>
Subject: Re: [Crosswalk-help] Crosswalk Lite With Cordova

Ok,
Thanks for helping me out, but do let me know as soon as its done.


Niraj Chauhan
[email protected]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Tue, Jan 12, 2016 at 12:38 PM, He, Ke 
<[email protected]<mailto:[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]<mailto:[email protected]>]
Sent: Tuesday, January 12, 2016 2:23 PM

To: He, Ke
Cc: 
[email protected]<mailto:[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]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Tue, Jan 12, 2016 at 8:36 AM, He, Ke 
<[email protected]<mailto:[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]<mailto:[email protected]>]
Sent: Monday, January 11, 2016 11:44 PM
To: He, Ke
Cc: 
[email protected]<mailto:[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<http://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<http://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<http://1.0.0.1/res/raw/libxwalkcore.so.armeabi_v7a:raw/libxwalkcore>
PFA log file.


Niraj Chauhan
[email protected]<mailto:[email protected]>

GreyKite
http://www.greykite.com

On Mon, Jan 11, 2016 at 11:00 AM, He, Ke 
<[email protected]<mailto:[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]] On Behalf Of Niraj 
Chauhan
Sent: Friday, January 08, 2016 7:10 PM
To: 
[email protected]<mailto:[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]<mailto:[email protected]>

GreyKite
http://www.greykite.com






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

Reply via email to