Ionic-cli: Could not find apk architecture: arm build-type: debug

Created on 22 Mar 2017  Â·  8Comments  Â·  Source: ionic-team/ionic-cli

What version of the CLI are you using? Output of ionic --version

2.2.1

Short description of the problem:

After installing the cordova-plugin-crosswalk-webview, I cannot do ionic run android anymore.

What behavior are you expecting?

Before installing the plugin it worked fine

Steps to reproduce:

  1. ionic platform add android
  2. ionic plugin add cordova-plugin-crosswalk-webview
  3. ionic run android

Post the output of ionic info below please

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.4.0
Xcode version: Xcode 8.2.1 Build version 8C1002

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

This is related to #265 but as it was closed 2 years ago and the problem is still not fixed, reopening here. I am on MacOS

Most helpful comment

@dwieeb - I just wanted to follow up on your comment about ionic no longer recommending using crosswalk. We are using it on our ionic v1 app so that older devices still have a good experience. Are you saying it's no longer necessary to use this?

All 8 comments

This issue has been automatically closed because it had the v2 label. Please install the new CLI v3 (npm install -g ionic@latest). See CHANGELOG.md#Upgrading from CLI v2 for details.

If this issue is still a problem in CLI v3, please create a new issue. Thank you!

what about the people that depend on older versions?

@ramonpm

Ionic no longer recommends using crosswalk. The standard webview is performant and you can shave off 60+ MB from your apk by removing the plugin.

A common misconception is that the CLI version is tied to the Framework version. This is not true. The latest CLI supports all Ionic versions, even Ionic 1. You should be able to upgrade your CLI to the new version with no troubles. If there are troubles, we will fix them.

Also, this is an issue with cordova-android or the Android build tools, not the Ionic CLI.

Hi @dwieeb thanks for the information. However when I use the ionic CLI last version I can't make it works because it asks for new configuration files that I can't realize how to make it works.

The thing with crosswalk is that we were experiencing problems in different versions of smartphones and when we used that browser yeah it increased the size for more than 50mb but we got every problems fixed... So I stucked right now, trying to figure out a workaround or even recreate my app with another technology.

@ramonpm I would be happy to assist you in upgrading to the latest Ionic CLI. What new configuration files are you referring to? Screenshots and stack traces of errors (if any) are most welcome. But perhaps create a new issue, first.

As for the original issue with crosswalk, please create a new issue with full stack traces and as much information as you can. A lot has changed since March. Before you do, please try running a vanilla build with the Cordova CLI: cordova build android. If the error still occurs, it is an issue with Cordova or cordova-android or the Cordova plugin. I would start by reporting the issue in the plugin's repo: https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

Thank you very much I will try these on monday and open an issue if it's
the case

2017-11-11 16:50 GMT-02:00 dwieeb notifications@github.com:

@ramonpm https://github.com/ramonpm I would be happy to assist you in
upgrading to the latest Ionic CLI. What new configuration files are you
referring to? Screenshots and stack traces of errors (if any) are most
welcome. But perhaps create a new issue, first.

As for the original issue with crosswalk, please create a new issue with
full stack traces and as much information as you can. A lot has changed
since March. Before you do, please try running a vanilla build with the
Cordova CLI: cordova build android. If the error still occurs, it is an
issue with Cordova or cordova-android or the Cordova plugin. I would
start by reporting the issue in the plugin's repo:
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ionic-team/ionic-cli/issues/2021#issuecomment-343685983,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAM6dDE1AbEvTVZkq9uc5A9NQpJqsA-tks5s1eyEgaJpZM4Mkrwy
.

--
Ramon de Paula Marques

@dwieeb - I just wanted to follow up on your comment about ionic no longer recommending using crosswalk. We are using it on our ionic v1 app so that older devices still have a good experience. Are you saying it's no longer necessary to use this?

@jacquesdev You should do your own research, there isn't a one-size-fits-all answer yet for whether crosswalk is still necessary. Here's some info about WebView: https://developer.chrome.com/multidevice/webview/overview

In Android 5.0 (Lollipop), the WebView has moved to an APK so it can be updated separately to the Android platform.

5.0 (~three years ago) and newer devices should have "ever-green" WebViews, which always ship the latest performance and security releases.

My recommendation is to figure out what percentage of your users has Android <5.0. If it's a low percentage, you may be better off focusing on the majority of your users, as Crosswalk can add some dev time, filesize, complexity, etc.

These are all my own thoughts. Ionic has not made an official statement recently about Crosswalk AFAIK.

Was this page helpful?
0 / 5 - 0 ratings