Cocos Creator Compile Error to Windows

Cocos Creator Compile Error to Windows
0.0 0


I get this error when I try to compile:

Error: Compile failed. The log file path [ C:\Users\Yi Chen.CocosCreator\logs\native.log ]
at ChildProcess.handleChildProcess (C:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:20297)
at ChildProcess.e.on (C:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

How do I fix it?


Please, copy the content of C:\Users\Yi Chen.CocosCreator\logs\native.log
That error message you gave is just says that the compile failed, we need to read the log


Building mode: release
Required VS version : [2013, 2015, 2017]
Can’t find correct Visual Studio’s path in the registry.

I think this is it


I know this isn’t helpful, but I had this problem too and I was able to resolve it. I think it was a missing entry in PATH for msbuild or something, I can’t remember. All I know is that I ended up fixing it after looking around for a while, good luck!


Did you install Visual Studio 2015 or 2017 in you Windows PC?


Please, refer to

You need the Java SDK (JDK) 1.8+, Android Studio (Android SDK Platform-Tools, Android SDK Tools and Android Support Library), Python 2.7.5+, Visual Studio 2015 or 2017, and configure the paths.

If you already have Visual Studio installed, try to reinstall it.