Can't build apk, IOException: Win32 IO returned ERROR_BROKEN_PIPE

For some reason, my app wont build. This happened soon after I setup the google play games services.

Here’s the error report:

IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path: C:\Users\Shepard\Desktop\Unity Projects\New[Unknown]
System.IO.FileStream.FlushBuffer (System.IO.Stream st) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1040)
System.IO.FileStream.FlushBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1054)
System.IO.FileStream.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:859)
System.IO.StreamWriter.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:191)
System.IO.StreamWriter.Dispose (Boolean disposing) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:162)
UnityEditor.HostView:OnGUI()

1 Like

Exactly the same here :

IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path: C:\UnityProjects\Project\[Unknown]
System.IO.FileStream.FlushBuffer (System.IO.Stream st) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1040)
System.IO.FileStream.FlushBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1054)
System.IO.FileStream.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:859)
System.IO.StreamWriter.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:191)
System.IO.StreamWriter.Dispose (Boolean disposing) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:162)
UnityEditor.HostView:OnGUI()

Note that i already use :

  • Unity IAP
  • Unity Ad
  • iTween
  • CryptoPlayerPrefs

This error occurred after addind Google Play Game Services 0.95 for their official GitHub.
Removing it allows the project to build apk properly again.

I don’t see what’s happening here…

1 Like

Ok; as seen on another thread,
updating JDK to Java SE Development Kit 8u162 did the trick (Win10 x64).

1 Like

IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path:

hey , i have more than 3 days searching and trying to solve this error , thank you a lot
but not this version off jdk , the latest one will be better ,
and try to move every thing to the C:// and the jdk should be on programs file

thank you a lot and best regards

1 Like

See this: Trello

This is a frustrating issue, it works fine when I remove Google Play Services. What’s frustrating is that this was never a problem, every single time I built my apk with Google Play Services. I never changed a single thing in my project and now randomly this stupid error comes up and also gets stuck when building the apk. Unity can you please fix your god damn bugs?!?! How can an error like this just randomly occur with building project files on the same damn version of Unity when it was never an issue before and made no changes. Next day comes, I open Unity up from the same project and bam! t his stupid error occurs in my console. Can we please get an update on this issue!

1 Like