ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

App doesn't run on device after last update

Open joseadrian opened this issue 11 years ago • 5 comments

After the last ionic-cli update, and cordova plus node runtime (because it wouldn't let me run ionic browser add crosswalk), the app won't open on a device.

I started a blank project and the same result. Emulator :white_check_mark: Device :x:.

Steps:

ionic start example blank
cd example
ionic platform add android
ionic browser add crosswalk
ionic build android 
...
# BUILD SUCCESSFUL

Test device info

Platform: Android
Versión: 4.4.4 
Model: XT1032 & Moto G

> ionic info

OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 4.2.0
Ionic Version: 1.0.0-beta.14
Ionic CLI Version: 1.3.10
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.1.1

This error log was taken from one of the apps after the update.

joseadrian avatar Feb 13 '15 16:02 joseadrian

Do you have a line in your platforms/android/res/xml/config.xml file that looks like the following:

<preference name="webView" value="org.crosswalk.engine.XWalkCordovaWebView" />

jbavari avatar Feb 13 '15 16:02 jbavari

Yes, that line is in the config.xml file. Should I do something with it?

joseadrian avatar Feb 13 '15 17:02 joseadrian

No just checking to see if it was missing, that might have been the cause of the issue.

jbavari avatar Feb 13 '15 17:02 jbavari

Well... this is odd. We've been using the x86 version since we started using crosswalk but now we have to use the arm one. We've been renaming the x86 and arm apk files but I don't think we've made any mistake while renaming the files since we only prepend the name of the app at the beginning and because there is a difference of 2-3MB in each build (x86 > armv7) so it is easy to recognise.

On https://appthwack.com the blank project for the x86 version on 10 different devices, shows the same errors as in the previous error log and the arm doesn't. The error they highlight is java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode. I guess this is related to crosswalk and not to ionic-cli.

joseadrian avatar Feb 13 '15 21:02 joseadrian

Do you have a line in your platforms/android/res/xml/config.xml file that looks like the following:

<preference name="webView" value="org.crosswalk.engine.XWalkCordovaWebView" />

in my case, it's different : <preference name="webView" value="com.ionicframework.cordova.webview.IonicWebViewEngine" />

astechnolabs-fullstack avatar Dec 16 '21 18:12 astechnolabs-fullstack