{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/995","repository_url":"https://api.github.com/repos/driftyco/ionic-cli","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/995/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/995/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/995/events","html_url":"https://github.com/driftyco/ionic-cli/issues/995","id":154282767,"number":995,"title":"[Bug] Ionic run android Typeerror","user":{"login":"Luchillo","id":9698639,"avatar_url":"https://avatars.githubusercontent.com/u/9698639?v=3","gravatar_id":"","url":"https://api.github.com/users/Luchillo","html_url":"https://github.com/Luchillo","followers_url":"https://api.github.com/users/Luchillo/followers","following_url":"https://api.github.com/users/Luchillo/following{/other_user}","gists_url":"https://api.github.com/users/Luchillo/gists{/gist_id}","starred_url":"https://api.github.com/users/Luchillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luchillo/subscriptions","organizations_url":"https://api.github.com/users/Luchillo/orgs","repos_url":"https://api.github.com/users/Luchillo/repos","events_url":"https://api.github.com/users/Luchillo/events{/privacy}","received_events_url":"https://api.github.com/users/Luchillo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic-cli/labels/needs_reply","name":"needs_reply","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-11T16:12:04Z","updated_at":"2016-05-17T20:19:53Z","closed_at":null,"body":"Hi, i updated to lates ionic-cli and now when i try to build for android this happens:\r\n```js\r\nRunning command: /Users/aplicacionesosgroup/Documents/OSGroup/taoappionic2/hooks/after_prepare/010_add_platform_class.js /Users/aplicacionesosgroup/Documents/OSGroup/taoappionic2\r\nadd to body class: platform-android\r\nANDROID_HOME=/Users/aplicacionesosgroup/Library/Android/sdk\r\nJAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home\r\nnull\r\norg.xwalk:xwalk_core_library:17+\r\n:preBuild UP-TO-DATE\r\n:preArmv7DebugBuild UP-TO-DATE\r\n:checkArmv7DebugManifest\r\n:preX86DebugBuild UP-TO-DATE\r\n:CordovaLib:preBuild UP-TO-DATE\r\n:CordovaLib:preDebugBuild UP-TO-DATE\r\n:CordovaLib:compileDebugNdk UP-TO-DATE\r\n:CordovaLib:compileLint\r\n:CordovaLib:copyDebugLint UP-TO-DATE\r\n:CordovaLib:mergeDebugProguardFiles\r\n:CordovaLib:packageDebugRenderscript UP-TO-DATE\r\n:CordovaLib:checkDebugManifest\r\n:CordovaLib:prepareDebugDependencies\r\n:CordovaLib:compileDebugRenderscript\r\n:CordovaLib:generateDebugResValues\r\n:CordovaLib:generateDebugResources\r\n:CordovaLib:packageDebugResources\r\n:CordovaLib:compileDebugAidl\r\n:CordovaLib:generateDebugBuildConfig\r\n:CordovaLib:generateDebugAssets UP-TO-DATE\r\n:CordovaLib:mergeDebugAssets\r\n:CordovaLib:processDebugManifest\r\n:CordovaLib:processDebugResources\r\n:CordovaLib:generateDebugSources\r\n:CordovaLib:compileDebugJavaWithJavacCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\n\r\n:CordovaLib:processDebugJavaRes UP-TO-DATE\r\n:CordovaLib:transformResourcesWithMergeJavaResForDebug\r\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug\r\n:CordovaLib:mergeDebugJniLibFolders\r\n:CordovaLib:transformNative_libsWithMergeJniLibsForDebug\r\n:CordovaLib:transformNative_libsWithSyncJniLibsForDebug\r\n:CordovaLib:bundleDebug\r\n:prepareAndroidCordovaLibUnspecifiedDebugLibrary\r\n:preArmv7ReleaseBuild UP-TO-DATE\r\n:preX86ReleaseBuild UP-TO-DATE\r\n:CordovaLib:preReleaseBuild UP-TO-DATE\r\n:CordovaLib:compileReleaseNdk UP-TO-DATE\r\n:CordovaLib:copyReleaseLint UP-TO-DATE\r\n:CordovaLib:mergeReleaseProguardFiles\r\n:CordovaLib:packageReleaseRenderscript UP-TO-DATE\r\n:CordovaLib:checkReleaseManifest\r\n:CordovaLib:prepareReleaseDependencies\r\n:CordovaLib:compileReleaseRenderscript\r\n:CordovaLib:generateReleaseResValues\r\n:CordovaLib:generateReleaseResources\r\n:CordovaLib:packageReleaseResources\r\n:CordovaLib:compileReleaseAidl\r\n:CordovaLib:generateReleaseBuildConfig\r\n:CordovaLib:generateReleaseAssets UP-TO-DATE\r\n:CordovaLib:mergeReleaseAssets\r\n:CordovaLib:processReleaseManifest\r\n:CordovaLib:processReleaseResources\r\n:CordovaLib:generateReleaseSources\r\n:CordovaLib:compileReleaseJavaWithJavacCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\n\r\n:CordovaLib:processReleaseJavaRes UP-TO-DATE\r\n:CordovaLib:transformResourcesWithMergeJavaResForRelease\r\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease\r\n:CordovaLib:mergeReleaseJniLibFolders\r\n:CordovaLib:transformNative_libsWithMergeJniLibsForRelease\r\n:CordovaLib:transformNative_libsWithSyncJniLibsForRelease\r\n:CordovaLib:bundleRelease\r\n:prepareComAndroidSupportSupportV42400Alpha2Library\r\n:prepareOrgXwalkXwalk_core_library174644810Library\r\n:prepareArmv7DebugDependencies\r\n:compileArmv7DebugAidl\r\n:compileArmv7DebugRenderscript\r\n:generateArmv7DebugBuildConfig\r\n:generateArmv7DebugAssets UP-TO-DATE\r\n:mergeArmv7DebugAssets\r\n:createXwalkCommandLineFileArmv7Debug\r\n:generateArmv7DebugResValues\r\n:generateArmv7DebugResources\r\n:mergeArmv7DebugResources\r\n:processArmv7DebugManifest\r\n:processArmv7DebugResources\r\n:generateArmv7DebugSources\r\n:compileArmv7DebugJavaWithJavacCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\n FAILED\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 34.584 secs\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n\r\nCaught exception:\r\n TypeError: Invalid data, chunk must be a string or buffer, not function\r\n    at WriteStream.Socket.write (net.js:640:11)\r\n    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)\r\n    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)\r\n    at emitOne (events.js:101:20)\r\n    at Socket.emit (events.js:188:7)\r\n    at readableAddChunk (_stream_readable.js:172:18)\r\n    at Socket.Readable.push (_stream_readable.js:130:10)\r\n    at Pipe.onread (net.js:535:20) \r\n\r\nMind letting us know? https://github.com/driftyco/ionic-cli/issues\r\n```"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/219840921","html_url":"https://github.com/driftyco/ionic-cli/issues/995#issuecomment-219840921","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/995","id":219840921,"user":{"login":"0v3rst33r","id":16577884,"avatar_url":"https://avatars.githubusercontent.com/u/16577884?v=3","gravatar_id":"","url":"https://api.github.com/users/0v3rst33r","html_url":"https://github.com/0v3rst33r","followers_url":"https://api.github.com/users/0v3rst33r/followers","following_url":"https://api.github.com/users/0v3rst33r/following{/other_user}","gists_url":"https://api.github.com/users/0v3rst33r/gists{/gist_id}","starred_url":"https://api.github.com/users/0v3rst33r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0v3rst33r/subscriptions","organizations_url":"https://api.github.com/users/0v3rst33r/orgs","repos_url":"https://api.github.com/users/0v3rst33r/repos","events_url":"https://api.github.com/users/0v3rst33r/events{/privacy}","received_events_url":"https://api.github.com/users/0v3rst33r/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T20:19:53Z","updated_at":"2016-05-17T20:19:53Z","body":"I have the same issue.  Must one use different versions of Ionic2, or perhaps even Cordova?"}}