2023-1-29 21:15-log: [task:run]: init options success, 10%
2023-1-29 21:15-log: [task:run]: native:(run) start…, 10%
2023-1-29 21:15-debug: native:(run) start…
2023-1-29 21:15-debug: // ---- native:(run) ----
2023-1-29 21:15-debug: Use build file cocos.compile.config.json in root(D:\cocosxm\yzzjh\yzyl\build\android)
2023-1-29 21:15-error: can not find apk at
2023-1-29 21:15-debug: init options success
2023-1-29 21:15-debug: // ---- native:(run) success ----
2023-1-29 21:15-log: [plugin Run]: running …
2023-1-29 21:15-log: [task:run]: native:(run) √, 30.000000000000004%
2023-1-29 21:15-log: [plugin Run]: done!
2023-1-29 21:15-debug: native:(run) √
2023-1-29 21:15-log: [task:run]: success!
2023-1-29 21:15-debug: Use build file cocos.compile.config.json in root(D:\cocosxm\yzzjh\yzyl\build\android)
2023-1-29 21:15-log: [task:make]: init options success, 10%
2023-1-29 21:15-debug: init options success
2023-1-29 21:15-log: [task:make]: native:(make) start…, 10%
2023-1-29 21:15-debug: // ---- native:(make) ----
2023-1-29 21:15-log: generate android
2023-1-29 21:15-log: [plugin Generate]: done!
2023-1-29 21:15-log: [plugin Compile]: running …
2023-1-29 21:15-log: [runCmd]: D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat yzyl:assembleRelease
2023-1-29 21:15-debug: native:(make) start…
2023-1-29 21:15-log: [plugin Generate]: running …
2023-1-29 21:15-log: [runCmd D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat]
2023-1-29 21:15-log: [runCmd D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat] ERROR: JAVA_HOME is set to an invalid directory: E:\java_jdk
2023-1-29 21:15-log: [runCmd D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat]
2023-1-29 21:15-log: [runCmd D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat] Please set the JAVA_HOME variable in your environment to match the
2023-1-29 21:15-log: [runCmd D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat] location of your Java installation.
2023-1-29 21:15-warn: failed to exec D:\cocosxm\yzzjh\yzyl\build\android\proj\gradlew.bat yzyl:assembleRelease
2023-1-29 21:15-error: make package D:\cocosxm\yzzjh\yzyl\build\android failed!
2023-1-29 21:15-log: [task:make]: failed!
也没有任何提示,不知道问题出在哪呀,构建没问题,生成的时候就报错