博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CocosCreator Andorid打包找不到JAVA_HOME
阅读量:6345 次
发布时间:2019-06-22

本文共 2012 字,大约阅读时间需要 6 分钟。

版权声明:本文为博主原创文章,未经博主允许不得转载。 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,再次构建

你可能感兴趣的文章
ICMP
查看>>
界面设计模式(第2版)(全彩)
查看>>
解决VMware Workstation错误:未能锁定文件
查看>>
CentOS6 手动编译升级 gcc
查看>>
memcached的安装与开启脚本
查看>>
Linux与Window字符集~~伤不起的幽灵空白符
查看>>
zabbix 邮件报警 -- sendmail
查看>>
JavaScript异步编程
查看>>
tcpdump用法小记
查看>>
MySQL基础安全注意细节
查看>>
Oracle随机函数—dbms_random
查看>>
pvr 批量转换
查看>>
linux命令basename使用方法
查看>>
windows下开发库路径解决方案
查看>>
linux迁移mysql数据目录
查看>>
脚本源码安装LNMP
查看>>
Percona Server安装
查看>>
函数为左边表达式
查看>>
读书杂谈一
查看>>
winform listbox 元素显示tooltrip
查看>>