I have a Ionic 3 project, when I run \"ionic cordova run android --prod\" I see
This error:
ANDROID_HOME=C:\\Users\\asus\\AppData\\Loca
1 Get crosswalk version
There are another two ways to get xwalk_core_library version, you can use either of them:
Go to platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/, then you can see version like 19.49.514.5
In the Google cache, you can select a version number
2 Change the gradle
Just like @hemantv said, in file platforms\android\cordova-plugin-crosswalk-webview*-xwalk.gradle
Change the file form
dependencies {
compile xwalkSpec
}
to
dependencies {
compile 'org.xwalk:xwalk_core_library:19.49.514.5'
}
19.49.514.5 is the version get from the step one.
Another way, you can use this plugin temporarily:
cordova plugin add https://github.com/zhouzhongyuan/cordova-plugin-crosswalk-webview
It just fixed this error.