Cocos Creator Compile Error to Windows

Cocos Creator Compile Error to Windows
0.0 0

#1

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?


#2

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


#3

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

I think this is it


#4

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!


#5

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


#6

Please, refer to http://docs.cocos.com/creator/manual/en/publish/setup-native-development.html.

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.