D:\test-1\Mobile-App>ionic cordova build android ionic-v1.cmd build [15:36:43] Cannot load gulp: ReferenceError: primordials is not defined [15:36:43] Cannot load gulp: ReferenceError: primordials is not defined [15:36:43] Cannot run sass task: missing in gulpfile.js [15:36:43] Cannot load gulp: ReferenceError: primordials is not defined cordova.cmd build android Running command: node D:\test-1\Mobile-App\hooks\after_prepare\icons_and_splashscreens.js D:\test-1\Mobile-App Running command: node D:\test-1\Mobile-App\hooks\after_prepare\update_platform_config.js D:\test-1\Mobile-App events.js:187 throw er; // Unhandled ‘error’ event ^ TypeError [ERR_INVALID_ARG_TYPE]: The “chunk” argument must be one of type string or Buffer. Received type object - List item at validChunk (_stream_writable.js:268:10) at WriteStream.Writable.write (_stream_writable.js:303:21) at D:\test-1\Mobile-App\hooks\after_prepare\update_platform_config.js:340:32 at arrayEach (D:\test-1\Mobile-App\node_modules\lodash\lodash.js:516:11) at Function.forEach (D:\test-1\Mobile-App\node_modules\lodash\lodash.js:9342:14) at D:\test-1\Mobile-App\hooks\after_prepare\update_platform_config.js:335:11 at Object. (D:\test-1\Mobile-App\hooks\after_prepare\update_platform_config.js:344:3) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) Emitted ‘error’ event on WriteStream instance at: at errorOrDestroy (internal/streams/destroy.js:108:12) at validChunk (_stream_writable.js:271:5) at WriteStream.Writable.write (_stream_writable.js:303:21) [… lines matching original stack trace …] at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10) { code: ‘ERR_INVALID_ARG_TYPE’ } Hook failed with error code 1: D:\test-1\Mobile-App\hooks\after_prepare\update_platform_config.js [ERROR] An error occurred while running subprocess cordova. cordova.cmd build android exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
无法为由ionic@2.0.0开发的离子应用程序生成APK文件?
•
问答
zzxx1z2x 回答:无法为由ionic@2.0.0开发的离子应用程序生成APK文件?
暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com