ionichina android编译时错误。
发布于 1年前 作者 edire 1157 次浏览 来自 问答

bogon:ioniclub fanmingfei$ ionic build android Running command: /Users/fanmingfei/personalwork/ioniclub/hooks/after_prepare/010_add_platform_class.js /Users/fanmingfei/personalwork/ioniclub add to body class: platform-android Running command: /Users/fanmingfei/personalwork/ioniclub/platforms/android/cordova/build [Error: ANDROID_HOME is not set and “android” command not in your PATH. You must fulfill at least one of these conditions.] ERROR building one of the platforms: Error: /Users/fanmingfei/personalwork/ioniclub/platforms/android/cordova/build: Command failed with exit code 2 You may not have the required environment or OS to build this project Error: /Users/fanmingfei/personalwork/ioniclub/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/bin/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:766:16) at Process.ChildProcess._handle.onexit (child_process.js:833:5)

2 回复

你本地是不是没有配置 android 的开发环境?

@DongHongfei 是的 以前没有做过android开发。 ok

回到顶部