I have a live project in ionic 1, I want to rebuild the application again because I update one line of code.
ionic info:
I try to install ionic2 CLI and build it in IOS its work
but I can’t build it in Andoird
I have this log when I build in android
the plugins I used in the app:
"cordovaPlugins": [
"cordova-plugin-file",
"cordova-plugin-compat",
"cordova-plugin-device",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"cordova-plugin-file-transfer",
{
"locator": "https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git",
"id": "cordova-plugin-x-toast"
},
"cordova-plugin-network-information",
"ionic-plugin-keyboard",
"cordova-plugin-crosswalk-webview",
"cordova-plugin-inappbrowser",
"cordova-plugin-media",
{
"locator": "https://github.com/VersoSolutions/CordovaClipboard.git",
"id": "com.verso.cordova.clipboard"
},
{
"locator": "https://github.com/MyHealthTeams/google-app-conversion-tracker.git",
"id": "cordova-plugin-google-app-conversion-tracker"
}
],
the config file:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.test" version="0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>test</name>
<description>
test project.
</description>
<author email="you@example.com" href="http://example.com.com/">
test
</author>
<content src="index.html" />
<allow-navigation href="*" />
<access origin="*" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="SplashScreenDelay" value="5000" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="screen" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="xwalkVersion" value="20+" />
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
<preference name="xwalkMode" value="embedded" />
<preference name="xwalkMultipleApk" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="orientation" value="portrait" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<platform name="android">
<access origin="cdvfile://*" />
<allow-intent href="cdvfile://*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<preference name="iosPersistentFileLocation" value="Library" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
</platform>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" />
<engine name="android" spec="^7.1.4" />
</widget>
Package.json
{
"name": "test",
"version": "1.1.1",
"description": "test: An Ionic project",
"dependencies": {
"cordova-android": "^7.1.4",
"gulp": "~3.9.1",
"gulp-concat": "^2.6.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0",
"lodash": "*",
"y": "^0.3.2"
},
"devDependencies": {
"angular-mocks": "^1.5.8",
"babel-cli": "6.11.4",
"babel-preset-es2015": "6.13.2",
"bower": "^1.3.3",
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"eslint": "^2.9.0",
"eslint-config-airbnb": "9.0.1",
"eslint-config-airbnb-base": "3.0.1",
"eslint-config-google": "^0.5.0",
"eslint-plugin-import": "1.8.1",
"faker": "^3.1.0",
"gulp-angular-templatecache": "^2.0.0",
"gulp-babel": "6.1.2",
"gulp-clean": "^0.3.2",
"gulp-concat-css": "^2.3.0",
"gulp-eslint": "^2.0.0",
"gulp-htmlhint": "^0.3.1",
"gulp-jsinspect": "^2.0.0",
"gulp-plumber": "1.1.0",
"gulp-sass": "2.3.2",
"gulp-sass-lint": "1.2.0",
"gulp-sourcemaps": "1.6.0",
"jasmine-core": "^2.4.1",
"karma": "^0.13.22",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^1.0.1",
"karma-coverage": "^1.1.0",
"karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.0",
"karma-requirejs": "^1.0.0",
"phantomjs": "^1.9.17",
"phantomjs-prebuilt": "^2.1.7",
"requirejs": "^2.2.0",
"sass-lint": "1.8.0",
"shelljs": "^0.3.0"
},
"cordovaPlugins": [
"cordova-plugin-file",
"cordova-plugin-compat",
"cordova-plugin-device",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"cordova-plugin-file-transfer",
{
"locator": "https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git",
"id": "cordova-plugin-x-toast"
},
"cordova-plugin-network-information",
"ionic-plugin-keyboard",
"cordova-plugin-crosswalk-webview",
"cordova-plugin-inappbrowser",
"cordova-plugin-media",
{
"locator": "https://github.com/VersoSolutions/CordovaClipboard.git",
"id": "com.verso.cordova.clipboard"
},
{
"locator": "https://github.com/MyHealthTeams/google-app-conversion-tracker.git",
"id": "cordova-plugin-google-app-conversion-tracker"
}
],
"cordovaPlatforms": [
"android",
"ios",
{
"platform": "android",
"version": "",
"locator": "android"
},
{
"platform": "ios",
"version": "",
"locator": "ios"
}
],
"scripts": {
"start": "ionic serve",
"android": "ionic build android && ionic run android",
"android-lc": "ionic run android -lc",
"ios": "ionic run ios",
"ios-lc": "ionic run ios -lc",
"ios-em": "ionic emulate ios",
"ios-em-lc": "ionic emulate ios -lc",
"lint": "gulp lint",
"lint-fix": "eslint --fix app/ gulpfile.js",
"build": "ionic build ",
"fix": "rm -rf www bower && git checkout -- www && bower install && npm install && gulp",
"test": "karma start tests/karma.conf.js --no-auto-watch --single-run",
"test-watch": "karma start tests/karma.conf.js",
"test-protractor": "protractor tests/protractor.conf.js",
"platforms": "ionic platform remove ios android && ionic platform add ios android",
"prestart": "gulp",
"prebuild": "gulp",
"pretest": "gulp",
"preandroid": "gulp",
"preandroid-lc": "gulp",
"preios-em": "gulp",
"preios-em-lc": "gulp",
"preios": "gulp",
"preios-lc": "gulp",
"prefix": "ionic platform remove ios android && ionic platform add ios android"
},
"cordova": {
"platforms": [
"android"
]
}
}
Note: I try to remove crosswalk
and the build is a success but I can’t remove it, just trying where is the problem, so I don’t know if the crosswalk causes the problem.
any suggestions?