{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3482","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3482/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3482/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3482/events","html_url":"https://github.com/driftyco/ionic/issues/3482","id":66995483,"number":3482,"title":"'ionic browser revert android' doesn't remove cordova-plugin-crosswalk-webview plugin","user":{"login":"mattezell","id":361409,"avatar_url":"https://avatars.githubusercontent.com/u/361409?v=3","gravatar_id":"","url":"https://api.github.com/users/mattezell","html_url":"https://github.com/mattezell","followers_url":"https://api.github.com/users/mattezell/followers","following_url":"https://api.github.com/users/mattezell/following{/other_user}","gists_url":"https://api.github.com/users/mattezell/gists{/gist_id}","starred_url":"https://api.github.com/users/mattezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattezell/subscriptions","organizations_url":"https://api.github.com/users/mattezell/orgs","repos_url":"https://api.github.com/users/mattezell/repos","events_url":"https://api.github.com/users/mattezell/events{/privacy}","received_events_url":"https://api.github.com/users/mattezell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T21:32:54Z","updated_at":"2015-04-07T21:32:54Z","closed_at":null,"body":"When attempting to revert to Android after having introduced Crosswalk to my project, using the documented 'ionic browser revert android' doesn't completely clean up the environment - the breaking omission in my case being the still present cordova-plugin-crosswalk-webview plugin.\r\n\r\nBelow, you will find my info as well as the steps to reproduce copied and pasted from my console.\r\n\r\nIonic Info:\r\n'c:\\Working\\temp\\test2>ionic info\r\n'Your system information:\r\n'OS: Windows 7 SP1\r\n'Node Version: v0.10.36\r\n'Cordova CLI: 4.3.0\r\n'Ionic Version: 1.0.0-rc.2\r\n'Ionic CLI Version: 1.3.19\r\n\r\nAnd my buffer of creating a new project, adding android, adding crosswalk, reverting from crosswalk to Android, later removing android platform and then attempting to add android again (as would often be done of the lifetime of a project using crosswalk (see forums for example)).  As you will see, 'cordova-plugin-crosswalk-webview' is left in 'plugins'.  In my case, if I manually delete this plugin, I can then again add android as a platform (using 'ionic platform add android').  \r\n\r\nAm I doing something wrong?\r\n\r\n'Create an ionic.io account to use the Ionic View app and other features?\r\n'(Y/n): n\r\n'\r\n'c:\\Working\\VF\\temp>cd test2\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform add android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\before_platform_add\\init_directories.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'Creating android project...\r\n'Creating Cordova project for the Android platform:\r\n        'Path: platforms\\android\r\n        'Package: com.ionicframework.test2352495\r\n        'Name: test2\r\n        'Android target: android-19\r\n'Copying template files...\r\n'Project successfully created.\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\010_add_platform_class.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'add to body class: platform-android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\020_remove_sass_from_platforms.js c:\\Working\\VF\r\n'\\temp\\test2\r\n'Installing \"com.ionic.keyboard\" for android\r\n'Installing \"org.apache.cordova.console\" for android\r\n'Installing \"org.apache.cordova.device\" for android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_platform_add\\010_install_plugins.js c:\\Working\\VF\\temp\\\r\n'test2\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic browser add crosswalk\r\n'Adding crosswalk browser\r\n'\r\n'Downloading: https://github.com/driftyco/cordova-crosswalk-engine/archive/c0.6.2.zip\r\n'[=============================]  100%  0.0s\r\n'\r\n'Downloaded cordova-crosswalk-engine\r\n'\r\n'Downloading: https://github.com/driftyco/cordova-android/archive/c0.5.6.zip\r\n'[=============================]  100%  0.0s\r\n'\r\n'Finished downloading cordova-android v4.0.x\r\n'\r\n'Altered permissions for Android Paths\r\n'\r\n'Downloaded Cordova Android for Crosswalk\r\n'\r\nDownloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable/11.40.277.7/arm'/crosswalk-webview-11.40.277.7-arm.zip\r\n'\r\nDownloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable/11.40.277.7/x86'/crosswalk-webview-11.40.277.7-x86.zip\r\n'[=============================]  100%  0.0s\r\n'[===========================  ]  94%  0.6s\r\n'Copying over Crosswalk Webview (arm) to the Crosswalk Engine\r\n'\r\n'Finished copying Crosswalk Webview (arm) to the Crosswalk Engine\r\n'[=============================]  100%  0.0s\r\n'\r\n'Copying over Crosswalk Webview (x86) to the Crosswalk Engine\r\n'\r\n'Finished copying Crosswalk Webview (x86) to the Crosswalk Engine\r\n'\r\n'Downloaded Crosswalk webviews\r\n'\r\n'Removed old Cordova Android platform\r\n'\r\n'Added Cordova Android 4.0\r\n'\r\n'Added Crosswalk Webview Engine\r\n'\r\n'Ionic Browser Add completed for Crosswalk\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic browser remove crosswalk\r\n'Removing crosswalk browser\r\n'\r\n'c:\\Working\\VF\\temp\\test2>... dir\r\n''...' is not recognized as an internal or external command,\r\n'operable program or batch file.\r\n'\r\n'c:\\Working\\VF\\temp\\test2>dir\r\n 'Volume in drive C has no label.\r\n 'Volume Serial Number is D481-B114\r\n'\r\n 'Directory of c:\\Working\\VF\\temp\\test2\r\n'\r\n'04/07/2015  08:32 AM    <DIR>          .\r\n'04/07/2015  08:32 AM    <DIR>          ..\r\n'04/07/2015  08:29 AM                29 .bowerrc\r\n'04/07/2015  08:29 AM               138 .gitignore\r\n'04/07/2015  08:30 AM               117 bower.json\r\n'04/07/2015  08:29 AM               798 config.xml\r\n'04/07/2015  08:33 AM    <DIR>          engine\r\n'04/07/2015  08:29 AM             1,353 gulpfile.js\r\n'04/07/2015  08:32 AM    <DIR>          hooks\r\n'04/07/2015  08:32 AM               160 ionic.project\r\n'04/07/2015  08:34 AM               378 package.json\r\n'04/07/2015  08:34 AM    <DIR>          platforms\r\n'04/07/2015  08:34 AM    <DIR>          plugins\r\n'04/07/2015  08:29 AM    <DIR>          scss\r\n'04/07/2015  08:30 AM    <DIR>          www\r\n               '7 File(s)          2,973 bytes\r\n               '8 Dir(s)   9,252,102,144 bytes free\r\n'\r\n'c:\\Working\\VF\\temp\\test2>dir platforms\r\n 'Volume in drive C has no label.\r\n 'Volume Serial Number is D481-B114\r\n'\r\n 'Directory of c:\\Working\\VF\\temp\\test2\\platforms\r\n'\r\n'04/07/2015  08:34 AM    <DIR>          .\r\n'04/07/2015  08:34 AM    <DIR>          ..\r\n'04/07/2015  08:34 AM    <DIR>          android\r\n               '0 File(s)              0 bytes\r\n               '3 Dir(s)   9,252,098,048 bytes free\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform remove andorid\r\n'running cordova platform remove andorid\r\n'Platform \"andorid\" not recognized as a core cordova platform. See `cordova platform list`.\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform remove android\r\n'running cordova platform remove android\r\n'Removing platform from package.json file\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform add android\r\n'Downloading Default Ionic Resources\r\n'\r\n'Downloading: https://github.com/driftyco/ionic-default-resources/archive/master.zip\r\n'[=============================]  100%  0.0s\r\n'Done adding default Ionic resources\r\n'Adding icons for platform: android\r\n'running cordova platform add android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\before_platform_add\\init_directories.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'Adding android project...\r\n'Creating Cordova project for the Android platform:\r\n        'Path: platforms\\android\r\n        'Package: com.ionicframework.test2352495\r\n        'Name: test2\r\n        'Android target: android-21\r\n'Copying template files...\r\n'Project successfully created.\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\010_add_platform_class.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'add to body class: platform-android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\020_remove_sass_from_platforms.js c:\\Working\\VF\r\n'\\temp\\test2\r\n'Installing \"com.ionic.keyboard\" for android\r\n'Installing \"org.apache.cordova.console\" for android\r\n'Installing \"org.apache.cordova.device\" for android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_platform_add\\010_install_plugins.js c:\\Working\\VF\\temp\\\r\n'test2\r\n'Saving platform to package.json file\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic browser list\r\n'iOS - Browsers Listing:\r\n'\r\n'Not Available Yet - WKWebView\r\n'Not Available Yet - UIWebView\r\n'\r\n'\r\n'Android - Browsers Listing:\r\n'\r\n'\r\n'Available - Crosswalk - ionic browser add crosswalk\r\n         'Version 8.37.189.14 Published Fri Oct 10 2014 03:26:00 GMT-0500 (Central Daylight Time)\r\n         'Version 9.38.208.10 Published Tue Nov 25 2014 11:45:00 GMT-0600 (Central Standard Time)\r\n         Version 10.39.235.15 Published Wed Dec 31 2014 13:16:00 GMT-0600 (Central Standard 'Time)\r\n         'Version 11.40.277.7 Published Thu Feb 26 2015 07:03:00 GMT-0600 (Central Standard Time)\r\n         'Version 12.41.296.5 Published Thu Mar 05 2015 13:19:00 GMT-0600 (Central Standard Time)\r\n'(canary) Version 13.41.318.0 Published Wed Mar 11 2015 09:22:00 GMT-0500 (Central Daylight Time)\r\n'\r\n'Available - Browser (default) - ionic browser revert android\r\n'Not Available Yet - GeckoView\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic browser add crosswalk@13.41.318.0\r\n'Adding crosswalk browser\r\n'\r\n'Downloading: https://github.com/driftyco/cordova-crosswalk-engine/archive/c0.7.1.zip\r\n'[=============================]  100%  0.0s\r\n'\r\n'Downloaded cordova-crosswalk-engine\r\n'\r\n'Downloading: https://github.com/driftyco/cordova-android/archive/c0.6.1.zip\r\n'[=============================]  100%  0.0s\r\n'\r\n'Finished downloading cordova-android v4.0.x\r\n'\r\n'Altered permissions for Android Paths\r\n'\r\n'Downloaded Cordova Android for Crosswalk\r\n'\r\nDownloading: https://download.01.org/crosswalk/releases/crosswalk/android/canary/13.41.318.0/arm'/crosswalk-webview-13.41.318.0-arm.zip\r\n'\r\nDownloading: https://download.01.org/crosswalk/releases/crosswalk/android/canary/13.41.318.0/x86'/crosswalk-webview-13.41.318.0-x86.zip\r\n'[=============================]  100%  0.0s\r\n'[=============================]  100%  0.0s\r\n'\r\n'Copying over Crosswalk Webview (arm) to the Crosswalk Engine\r\n'\r\n'Finished copying Crosswalk Webview (arm) to the Crosswalk Engine\r\n'\r\n'Copying over Crosswalk Webview (x86) to the Crosswalk Engine\r\n'\r\n'Finished copying Crosswalk Webview (x86) to the Crosswalk Engine\r\n'\r\n'Downloaded Crosswalk webviews\r\n'\r\n'Removed old Cordova Android platform\r\n'\r\n'Added Cordova Android 4.0\r\n'add crosswalk plugin ionic plugin add ./engine/cordova-crosswalk-engine-c0.7.1\r\n'\r\n'Added Crosswalk Webview Engine\r\n'\r\n'Copying default gradle.properties file\r\n'\r\n'Ionic Browser Add completed for Crosswalk\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic browser revert android\r\n'Reverting android browser\r\n'Reverted android browser\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform remove android\r\n'running cordova platform remove android\r\n'Removing platform from package.json file\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform list\r\n'running cordova platform list\r\n'Installed platforms:\r\nAvailable platforms: amazon-fireos, android, blackberry10, browser, firefoxos, windows, 'windows8, wp8\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic platform add android\r\n'running cordova platform add android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\before_platform_add\\init_directories.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'Adding android project...\r\n'Creating Cordova project for the Android platform:\r\n        'Path: platforms\\android\r\n        'Package: com.ionicframework.test2352495\r\n        'Name: test2\r\n        'Android target: android-21\r\n'Copying template files...\r\n'Project successfully created.\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\010_add_platform_class.js c:\\Working\\VF\\temp\\te\r\n'st2\r\n'add to body class: platform-android\r\nRunning command: \"C:\\Program Files (x86)\\nodejs\\node.exe\" 'c:\\Working\\VF\\temp\\test2\\hooks\\after_prepare\\020_remove_sass_from_platforms.js c:\\Working\\VF\r\n'\\temp\\test2\r\n'Installing \"com.ionic.keyboard\" for android\r\n'Installing \"cordova-plugin-crosswalk-webview\" for android\r\nFailed to install 'cordova-plugin-crosswalk-webview':CordovaError: Plugin doesn't support this 'project's cordova-android version. cordova-android: 3.7\r\n'.1, failed version requirement: >=4\r\n    at checkEngines (C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-'lib\\src\\plugman\\install.js:116:29)\r\n    at C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-'lib\\src\\plugman\\install.js:289:16\r\n    at _fulfilled (C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.'js:787:54)\r\n    at self.promiseDispatch.done ('C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:816:30)\r\n    at Promise.promise.promiseDispatch ('C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:749:13)\r\n    'at C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.js:557:44\r\n    at flush (C:\\Users\\mezell\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\q\\q.'js:108:17)\r\n    'at process._tickCallback (node.js:442:13)\r\n'\r\n'c:\\Working\\VF\\temp\\test2>ionic info\r\n'\r\n'Your system information:\r\n'\r\n'OS: Windows 7 SP1\r\n'Node Version: v0.10.36\r\n'Cordova CLI: 4.3.0\r\n'Ionic Version: 1.0.0-rc.2\r\n'Ionic CLI Version: 1.3.19\r\n'\r\n'\r\n'\r\n'c:\\Working\\VF\\temp\\test2>"}}