CocosCreator Andorid打包找不到JAVA_HOME

  1. 云栖社区>
  2. 博客>
  3. 正文

CocosCreator Andorid打包找不到JAVA_HOME

一线分享 2017-12-31 20:55:07 浏览437
展开阅读全文
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/78943187

Build Failed: Error: Please make sure java is installed and JAVA_HOME is in your environment
    at initCocosEnv (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:2245)
    at initSettings (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:3088)
    at Object.build (E:\tools\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:16390)
    at Gulp.<anonymous> (E:\tools\CocosCreator\resources\app.asar\editor\core\gulp-build.js:1:16843)
    at module.exports (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\lib\runTask.js:34:7)
    at Gulp.Orchestrator._runTask (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:273:3)
    at Gulp.Orchestrator._runStep (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:214:10)
    at Gulp.Orchestrator.start (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:134:8)
    at E:\tools\CocosCreator\resources\app.asar\node_modules\gulp-sequence\index.js:63:12
    at apply (E:\tools\CocosCreator\resources\app.asar\node_modules\thunks\index.js:355:38)
    at Async.series.t (E:\tools\CocosCreator\resources\app.asar\editor\core\builder.js:1:3024)
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:726:13
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:264:21
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:723:17
    at E:\tools\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37
    at Gulp.doneCallback (E:\tools\CocosCreator\resources\app.asar\editor\core\gulp-build.js:1:17321)
    at Gulp.Orchestrator.stop (E:\tools\CocosCreator\resources\app.asar\node_modules\orchestrator\index.js:150:9)


检测JAVA是否安装

然后以管理员方式运行CocosCreator,再次构建




网友评论

登录后评论
0/500
评论
一线分享
+ 关注