crosswalk-project / crosswalk

A web runtime built on Chrome. This project is currently unmaintained.
https://crosswalk-project.org/blog/crosswalk-final-release.html
BSD 3-Clause "New" or "Revised" License
2.33k stars 651 forks source link

1.29.4.1 - "Please install CrossWalk Runtime Library first." #830

Closed davidmaxwaterman closed 10 years ago

davidmaxwaterman commented 10 years ago

I've installed all the apks in apks/, and my apps, as below, but they don't run, resulting in :

Please install Crosswalk runtime Library first.

and a dialog :

CrossWalk Runtime No Found
Please install CrossWalk Runtime Library first.
[Cancel] [Install From Store]

Here's my install session for reference :

[apks]$ pwd
/home/davidmaxwaterman/Downloads/crosswalk-1.29.4.1/crosswalk-1.29.4.1/apks
[apks]$ for apk in *.apk; do adb install -r $apk; done |& ts
Oct 08 15:32:45 594 KB/s (43735 bytes in 0.071s)
Oct 08 15:32:46     pkg: /data/local/tmp/XWalkAppTemplate.apk
Oct 08 15:32:48 Success
Oct 08 15:33:18 593 KB/s (18151505 bytes in 29.878s)
Oct 08 15:33:19     pkg: /data/local/tmp/XWalkCoreShell.apk
Oct 08 15:33:23 Success
Oct 08 15:33:25 572 KB/s (886815 bytes in 1.513s)
Oct 08 15:33:26     pkg: /data/local/tmp/XWalkCoreTest.apk
Oct 08 15:33:29 Success
Oct 08 15:33:29 218 KB/s (13384 bytes in 0.059s)
Oct 08 15:33:30     pkg: /data/local/tmp/XWalkRuntimeClientShell.apk
Oct 08 15:33:32 Success
Oct 08 15:34:03 574 KB/s (18144987 bytes in 30.869s)
Oct 08 15:34:04     pkg: /data/local/tmp/XWalkRuntimeLib.apk
Oct 08 15:34:07 Success
Oct 08 15:34:40 560 KB/s (18122158 bytes in 31.597s)
Oct 08 15:34:40     pkg: /data/local/tmp/XWalkRuntimeShell.apk
Oct 08 15:34:44 Success
[apks]$ cd ~/z/apks/
[apks]$ ls
_Annex.apk       _CountingBeads.apk  _HangOnMan.apk     _MemoryGameOlderKids.apk  _Rabbit.apk          _SweetSpot.apk  _Wordswarm.apk
_Bubblewrap.apk  _Flashcards.apk     _MakeAMonster.apk  _MemoryMatch.apk          _ShoppingList.apk    _Tenframe.apk
_Calculator.apk  _Go.apk             _Mancala.apk       _Numeroo.apk              _SliderPuzzleNG.apk  _TodoList.apk
[apks]$ for apk in *.apk; do adb install -r $apk; done |& ts
Oct 08 15:35:50 597 KB/s (3689500 bytes in 6.035s)
Oct 08 15:35:51     pkg: /data/local/tmp/_Annex.apk
Oct 08 15:35:52 Success
Oct 08 15:36:01 601 KB/s (5243006 bytes in 8.508s)
Oct 08 15:36:02     pkg: /data/local/tmp/_Bubblewrap.apk
Oct 08 15:36:03 Success
Oct 08 15:36:04 606 KB/s (284063 bytes in 0.457s)
Oct 08 15:36:05     pkg: /data/local/tmp/_Calculator.apk
Oct 08 15:36:08 Success
Oct 08 15:36:12 582 KB/s (2428403 bytes in 4.070s)
Oct 08 15:36:13     pkg: /data/local/tmp/_CountingBeads.apk
Oct 08 15:36:15 Success
Oct 08 15:36:19 590 KB/s (2144648 bytes in 3.544s)
Oct 08 15:36:21     pkg: /data/local/tmp/_Flashcards.apk
Oct 08 15:36:22 Success
Oct 08 15:36:34 592 KB/s (7035282 bytes in 11.597s)
Oct 08 15:36:35     pkg: /data/local/tmp/_Go.apk
Oct 08 15:36:37 Success
Oct 08 15:36:40 608 KB/s (1723491 bytes in 2.764s)
Oct 08 15:36:41     pkg: /data/local/tmp/_HangOnMan.apk
Oct 08 15:36:43 Success
Oct 08 15:36:48 575 KB/s (2666537 bytes in 4.521s)
Oct 08 15:36:50     pkg: /data/local/tmp/_MakeAMonster.apk
Oct 08 15:36:51 Success
Oct 08 15:36:54 599 KB/s (1475931 bytes in 2.404s)
Oct 08 15:36:55     pkg: /data/local/tmp/_Mancala.apk
Oct 08 15:36:57 Success
Oct 08 15:37:10 593 KB/s (7815549 bytes in 12.862s)
Oct 08 15:37:11     pkg: /data/local/tmp/_MemoryGameOlderKids.apk
Oct 08 15:37:13 Success
Oct 08 15:37:28 606 KB/s (8933644 bytes in 14.373s)
Oct 08 15:37:29     pkg: /data/local/tmp/_MemoryMatch.apk
Oct 08 15:37:32 Success
Oct 08 15:37:34 609 KB/s (799314 bytes in 1.281s)
Oct 08 15:37:35     pkg: /data/local/tmp/_Numeroo.apk
Oct 08 15:37:38 Success
Oct 08 15:37:41 600 KB/s (1748454 bytes in 2.843s)
Oct 08 15:37:42     pkg: /data/local/tmp/_Rabbit.apk
Oct 08 15:37:44 Success
Oct 08 15:37:47 575 KB/s (1488698 bytes in 2.527s)
Oct 08 15:37:49     pkg: /data/local/tmp/_ShoppingList.apk
Oct 08 15:37:51 Success
Oct 08 15:37:56 590 KB/s (3145589 bytes in 5.200s)
Oct 08 15:37:57     pkg: /data/local/tmp/_SliderPuzzleNG.apk
Oct 08 15:37:59 Success
Oct 08 15:38:03 578 KB/s (2531964 bytes in 4.274s)
Oct 08 15:38:05     pkg: /data/local/tmp/_SweetSpot.apk
Oct 08 15:38:06 Success
Oct 08 15:38:13 605 KB/s (4000682 bytes in 6.452s)
Oct 08 15:38:14     pkg: /data/local/tmp/_Tenframe.apk
Oct 08 15:38:16 Success
Oct 08 15:38:18 599 KB/s (1112991 bytes in 1.812s)
Oct 08 15:38:20     pkg: /data/local/tmp/_TodoList.apk
Oct 08 15:38:22 Success
Oct 08 15:38:30 581 KB/s (4412907 bytes in 7.414s)
Oct 08 15:38:31     pkg: /data/local/tmp/_Wordswarm.apk
Oct 08 15:38:33 Success
[apks]$ 
davidmaxwaterman commented 10 years ago

This is blocking my work, so if anyone can comment asap, that'd be appreciated. I'm currently considering downgrading to an older version.

rakuco commented 10 years ago

@gramakri-intel @wang16 @huningxin @jketreno Any ideas? Max mentioned the canaries are also failing the same way for him.

wang16 commented 10 years ago

@rakuco , tried the apks from https://download.01.org/crosswalk/releases/android/beta/crosswalk-1.29.4.1.zip, it works for me. And i found the version of RuntimeLib there is actually 1.29.3.0, the version of AppTemplate and RuntimeClient is not specified. Which is not correct.

davidmaxwaterman commented 10 years ago

@wang16 could you provide more detail? Can you make a guess why things aren't working for me? Anything at all that might help me move past this? What exactly did you do to make them work? Anything different to what I did above?

I downloaded the zip you reference and it seems to be the same as the one I downloaded (even if I didn't download from the same place) :

[Downloads]$ mkdir crosswalk-1.29.4.1_001
[Downloads]$ cd !$
cd crosswalk-1.29.4.1_001
[crosswalk-1.29.4.1_001]$ md5sum ../crosswalk-1.29.4.1*.zip
4afb6e323096f198ffa375fff9b911c0  ../crosswalk-1.29.4.1_001.zip
4afb6e323096f198ffa375fff9b911c0  ../crosswalk-1.29.4.1.zip
[crosswalk-1.29.4.1_001]$ unzip ../crosswalk-1.29.4.1_001.zip
Archive:  ../crosswalk-1.29.4.1_001.zip
   creating: crosswalk-1.29.4.1/
  inflating: crosswalk-1.29.4.1/xwalk_app_template.tar.gz  
   creating: crosswalk-1.29.4.1/apks/
  inflating: crosswalk-1.29.4.1/apks/XWalkCoreTest.apk  
  inflating: crosswalk-1.29.4.1/apks/XWalkAppTemplate.apk  
  inflating: crosswalk-1.29.4.1/apks/XWalkCoreShell.apk  
  inflating: crosswalk-1.29.4.1/apks/XWalkRuntimeLib.apk  
  inflating: crosswalk-1.29.4.1/apks/XWalkRuntimeShell.apk  
  inflating: crosswalk-1.29.4.1/apks/XWalkRuntimeClientShell.apk  
[crosswalk-1.29.4.1_001]$ cd crosswalk-1.29.4.1/
[crosswalk-1.29.4.1]$ ls
apks  xwalk_app_template.tar.gz
[crosswalk-1.29.4.1]$ cd apks
[apks]$ ls
XWalkAppTemplate.apk  XWalkCoreTest.apk            XWalkRuntimeLib.apk
XWalkCoreShell.apk    XWalkRuntimeClientShell.apk  XWalkRuntimeShell.apk
[apks]$ for apk in *.apk; do adb install -r $apk; done
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1110 KB/s (43735 bytes in 0.038s)
    pkg: /data/local/tmp/XWalkAppTemplate.apk
Success
1279 KB/s (18151505 bytes in 13.855s)
    pkg: /data/local/tmp/XWalkCoreShell.apk
Success
1296 KB/s (886815 bytes in 0.668s)
    pkg: /data/local/tmp/XWalkCoreTest.apk
Success
266 KB/s (13384 bytes in 0.049s)
    pkg: /data/local/tmp/XWalkRuntimeClientShell.apk
Success
1295 KB/s (18144987 bytes in 13.680s)
    pkg: /data/local/tmp/XWalkRuntimeLib.apk
Success
1298 KB/s (18122158 bytes in 13.631s)
    pkg: /data/local/tmp/XWalkRuntimeShell.apk
Success
[apks]$ 

Then, on device, I tap XWalkCoreShell, it tells me :

"Unfortunately, XWalkCoreShell has stopped. [OK]"

I tap XWalkRuntimeClientSh, it tells me :

"download_dialog_title | download_dialog_msg [Cancel] [download_from_store]"

(that looks like a bug to me, but anyway)

Tapping XWalkRuntimeShell, it tells me :

"Unfortunately, XWalkRuntimeShell has stopped. [OK]"

Hrm, but no Template app there...I wonder why...I'll spend some time investigating, but if you can make some suggestions, that'd be (potentially) helpful.

wang16 commented 10 years ago

@davidmaxwaterman , I just run adb install -r apks/XWalkRuntimeLib.apk adb install -r apks/XWalkAppTemplate.apk adb install -r apks/XWalkRuntimeClientShell.apk

Running XWalkAppTemplate and XWalkRuntimeClientShell are both working for me. The XWalkRuntimeShell and XWalkCoreShell even fails for you, that's really weird. Please make sure you are trying to running them on an x86 arch phone.

davidmaxwaterman commented 10 years ago

Oh, the icon for XWalkAppTemplate has a different icon to the others, so I missed it visually...it is there and when I tap on it, I get :

"CrossWalk Runtime Not Found | Please install CrossWalk Runtime Library first. [Cancel] [Install From Store]"

If I look in the settings in the 'apps' page, I see :

XWalkAppTemplate 72.00KB XWalkCoreShell 19.47MB XWalkRuntimeClientShell 48.00KB XWalkRuntimeLib 19.45MB XWalkRuntimeShell 19.44MB

I will try uninstalling them all again and see what happens.

davidmaxwaterman commented 10 years ago

Aha! That sounds like it is the problem...my phone is arm (HTC One X). I don't have an x86 android phone.

Can you point me at the arm packages?

Thanks!

davidmaxwaterman commented 10 years ago

Will you file a bug on the lack of architecture name in the zip path/filename, or shall I?

wang16 commented 10 years ago

Sure, please go ahead for filing the bug.

wang16 commented 10 years ago

you mean point you the arm packages?

davidmaxwaterman commented 10 years ago

yes, I need a zip file containing arm apks...I don't have an x86 phone, so need arm ones.

wang16 commented 10 years ago

I'm not sure if there are beta/canary builds for arm. @rakuco You can try the ones from buildbot, which is for development first. http://wrt-build.sh.intel.com/archive/snapshots/dev-wrt-android-arm-build/191/

davidmaxwaterman commented 10 years ago

Thanks for the link. Can you point me at the version that is the same as 1.29.4.1?

wang16 commented 10 years ago

Actually, there's no one is the same as 1.29.4.1, buildbot is only tracking master branch. 1.29.4.1 is on beta. Anyway, let me find you the closest image. Is that ok for you?

wang16 commented 10 years ago

Try this one, http://wrt-build.sh.intel.com/archive/snapshots/dev-wrt-android-arm-build/171/

davidmaxwaterman commented 10 years ago

awesome, thanks! Can you tell me how you can get the version number? It's not in the file path or name, but you seemed to be able to tell from the apks somehow?

wang16 commented 10 years ago

Apk is kind of a zip, just open the AndroidManifest.xml in that zip, although it's encrypted, the version name is still readable. You just need to find it carefully.

davidmaxwaterman commented 10 years ago

Ah, it's in there...ok, thanks! That latest one works, so closing this. Thanks for getting me back on track. I'll ignore the public releases from now on (they don't appear very useful), and just use the snapshots.