Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

System.IO fails when building for Android?

Only one of our staff members can currently build our project, the rest of us are getting the following error when building.

I also have the error with Gear_VR.XML, but disabling the Gears VR plugin makes it go away. I can't disable Google Analytics, since we're using it - and the file is required for the plugin to work.

Any ideas? Log attached.link text

Product Version: UE 4.11
more ▼

asked May 17 '16 at 11:44 AM in Bug Reports

avatar image

820 61 98 140

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Was able to fix this by completely deleting the project from my local drive, clearing ALL of my temporary files and also clearing out old registry keys (using CCleaner).

Then and only then, I Force-got latest revision from perforce and built it, now it builds fine. I was confused by the fact that Unreal was creating some form of registry keys for my game though? Why would it need to do that?

more ▼

answered May 17 '16 at 11:55 AM

avatar image

820 61 98 140

avatar image Samantha Sutton ♦♦ STAFF May 19 '16 at 07:51 PM

It looks like the reason is because there was a persistent file that couldn't be overwritten: UnrealBuildTool Exception: System.IO.IOException: Cannot create a file when that file already exists.

Since the file already existed, it 'confused' the code and caused a build failure. If you run into this issue again, could you please let us know what you had been doing before the error started occurring?


avatar image rohoon Sep 04 '16 at 09:33 PM

This happens to me quite often, but only when packaging the project (not just launching straight to device). I'm not sure what the conditions are for it to occur, but deleting Intermediate/Saved/Binaries folders seems to fix it.

I've also tried checking out the entire project in Perforce so that all files are writable, but this has no effect.

Can I suggest adding extra information to that error message so we can see exactly which file can't be overwritten?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question