Software Archive
Read-only legacy content
17061 Discussions

Install App Preview Crosswalk failed

Mark_Z_1
Beginner
1,220 Views

Hi,

When I try to debug on Android device, XDK prompt me to install App Preview Crosswalk, but at the end of the download and installation, I get error. Please refer to the screenshot and how can I fix this? Please advice, thank you.

Step 1:

apppreview-crosswalk-install-error-01.png

Step 2:

apppreview-crosswalk-install-error-02.png

Step 3:

apppreview-crosswalk-install-error-03.png

Step 4:

apppreview-crosswalk-install-error-04.png

0 Kudos
14 Replies
Brandon_K_Intel
Employee
1,220 Views

What is the operating system that is running on your device? What type of phone are you using?

0 Kudos
Mark_Z_1
Beginner
1,220 Views

Brandon Kiefer (Intel) wrote:

What is the operating system that is running on your device? What type of phone are you using?

Tested the same process on few devices, Android 4.4.4/Android 4.2.2

Device name: Jiayu S3/Huawei Y330

Please advice, thanks.

0 Kudos
PaulF_IntelCorp
Employee
1,220 Views

My suspicion is there may be an adb conflict on your machine. See these links for some possible solutions:

If multiple ADB copies is the problem, there is an app that some guy created for Windows to resolve that issue. You can find it here: http://visualgdb.com/adbfix/ -- otherwise, for OSX and Linux you have to do it manually.

0 Kudos
Mark_Z_1
Beginner
1,220 Views

Hi Paul,

I've tried check and remove the adb (only one found) and reinstall the adb. Working fine detecting the hardware include detected model of the phone in XDK but just the same problem occur, nothing new, same old problem.

Any other idea?

0 Kudos
PaulF_IntelCorp
Employee
1,220 Views

I think you are running into a RAM or storage problem, as in, not enough to load and install the special App Preview Crosswalk app (APX) that must be installed on your device. According to this page (http://www.devicespecifications.com/en/comparison/b9af2ebd1) your device has only 512 MB of RAM, which is a marginal amount for use with the Debug tab, and 4GB of storage. I've seen problems trying to install APX in the past on devices that have only 512 MB of RAM. The only way I was able to get the APX image installed on an inexpensive tablet I use for testing that also has limited memory was to:

  1. remove as many apps from RAM as possible before installing APX (reboot the device is the simplest approach)
  2. make sure there is sufficient storage space in your device (uninstall any unneeded apps on the device)
  3. install APX by hand

The last step is the hardest, but only if you are uncomfortable with the command-line:

  1. while attempting to install APX (above) the XDK downloaded a copy of the APK that must be installed on your Android device
  2. find that APK that contains APX
  3. install that APK manually onto your Android device using adb

To find the APK, on a Mac:

$ cd ~/Library/Application\ Support/XDK
$ find . -name *apk

To find the APK, on a Windows machine:

> cd %LocalAppData%\XDK
> dir /s *.apk

For each version of Crosswalk that you have attempted to use (via the Debug tab), you will find a copy of the APK file (but only if you have attempted to use the Debug tab and the XDK has successfully downloaded the corresponding version of APX). You should find something similar to:

./apx_download/12.0/AppAnalyzer.apk

following the searches, above. Notice the directory that specifies the Crosswalk version (12.0 in this example). The file named AppAnalyzer.apk is APX and is what you need to install onto your Android device.

Before you install onto your Android device, you can double-check to see if APX is already installed:

  1. find "Apps" or "Applications" in your Android device's "settings" section
  2. find "App Preview Crosswalk" in the list of apps on your device (there can be more than one)

If you found one or more App Preview Crosswalk apps on your device, you can see which versions they are by using adb at the command-line (this assumes, of course, that your device is connected via USB and you can communicate with it using adb):

  1. type "adb devices" at the command-line to confirm you can see your device
  2. type "adb shell 'pm list packages -f' " at the command-line
  3. search the output for the word "app_analyzer"

The specific version(s) of APX installed on your device end with a version ID. For example: "com.intel.app_analyzer.v12" means you have APX for Crosswalk 12 installed on your device.

To install a copy of APX manually, cd to the directory containing the version of APX you want to install and then use the following adb command:

$ adb install AppAnalyzer.apk

If you need to remove the v12 copy of APX, due to crowding of available storage space, you can remove it using the following adb command:

$ adb uninstall com.intel.app_analyzer.v12

or

$ adb shell am start -a android.intent.action.DELETE -d package:com.intel.app_analyzer.v12

The second one uses the Android undelete tool to remove the app. You'll have to respond to a request to undelete on the Android device's screen. See this SO issue for details: http://stackoverflow.com/questions/12949609/adb-shell-command-to-make-android-package-uninstall-dialog-appear. Obviously, if you want to uninstall a different version of APX, specify the package ID corresponding to that version of APX.

0 Kudos
Mark_Z_1
Beginner
1,220 Views

Hi Paul, I'm testing with Jiayu S3 Advance version which is 3GB of RAM with lot's of storage space. But I'll read your long post and testing it out hope to find some fix there.

0 Kudos
Paweł_B_
Beginner
1,220 Views

Is there someplace I can download it and install manually? Just like I installed previous version of App Preview Crosswalk

Few XDK versions ago  Debugger was working fine for my Samsung Galaxy S3 then it stopped working for no reason and started to ask me to download new version of App Preview Crosswalk.  But every time when download is finished it gives me an error that "it cannot be installed"

Tried all what Paul Fischer wrote and still nothing. 

"For each version of Crosswalk that you have attempted to use (via the Debug tab), you will find a copy of the APK file (but only if you have attempted to use the Debug tab and the XDK has successfully downloaded the corresponding version of APX). You should find something similar to:

./apx_download/12.0/AppAnalyzer.apk"

This is not happening for me. I can see it downloading into the folder but i'm not able to copy it. Everytime the download finish and error shows up  the file is automatically deleted from my hdd. 

 

0 Kudos
PaulF_IntelCorp
Employee
1,220 Views

Makes no sense why that file is disappearing. I've attached all the versions that have been downloaded onto my machine (10, 11 and 12, missing 7), you can install them directly onto your device using the "adb install" command. You can find the adb command in an XDK install directory if you don't already have it installed on your system

0 Kudos
Peter_S_5
Beginner
1,220 Views

Thanks for providing the apk.  Now pushed to phone with adb, and can utilize most of the features in XDK.  Intel should provide the apk for manual install.

0 Kudos
Paweł_B_
Beginner
1,220 Views

Thanks for the link! App Preview Crosswalk 12  works perfect now

Could you also please include a link for App Preview Crosswalk 14.0 unfortunately it's exactly the same situation as before. Error after downloading and file disappears from XDK folder :/

Thank you

 

0 Kudos
PaulF_IntelCorp
Employee
1,220 Views

I wish we could reproduce this problem! I've attached APX 14 to this post so you can download and install manually.

Would you be willing to try the Early Access release to see if you get this same behavior there? See these posts: https://software.intel.com/en-us/forums/intel-xdk-early-access. If you do use the EA release, please make a complete copy of your project directory and use that copy for testing with EA. Opening your project with EA will make changes to your project that are not compatible with the 2170 release.

0 Kudos
John_B_5
Beginner
1,220 Views

....see below.

 

0 Kudos
John_B_5
Beginner
1,220 Views

I have good news and bad news. My apologies if this weird situation has already been reported.

My PC is a MacBook Pro, mid-2012, running OSX Yosemite. It is running VMWare Fusion 7.1.2 build 2779224.

The App Preview app is running fine on my retail version Verizon Samsung Galaxy S5 running Android 5.0, kernel 3.4.0, build BOG5.

XDK is running fine in my Windows 7 image running under VMWare Fusion Pro with the latest Samsung USB drivers installed (Aug 2015).

XDK version 2366 is running fine under OSX.

When I try to debug the demo Hello World Cordova app on the phone under windows, I get the same error above, and the USB connection is broken.

When I try to debug the demo Hello World Cordova app on the phone under OSX, it works perfectly.

Hope this helps somebody.

 

0 Kudos
PaulF_IntelCorp
Employee
1,220 Views

Had these squirreled away.

0 Kudos
Reply