I'm trying to build and run a very simple game on my mobile (htc 1) for the first time. The game builds fine as a windows game, but I get said UnauthorizedAccessException when trying to build for android (only build, without running it). It's specifically when building for the phone. The "game" is very simple, just containing a few sprites, colliders, main camera, a Canvas with a button... the usual simple stuff, without any scripts trying to access files outside of the game. I'm running as administrator, checked that the file in question isn't set as read only, USB debugging and "allow mock locations" is applied on the phone, I've tried turning of the firewall, closing visual studio and I've gone for a good old restart. Any ideas? edit: Further details: UnauthorizedAccessException: Access to the path "C:\Users\...\Temp\StagingArea\res\values\strings.xml" is denied. System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:320) System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) System.Xml.XmlTextWriter..ctor (System.String filename, System.Text.Encoding encoding) UnityEditor.AndroidXmlDocument.SaveAs (System.String path) edit2: Furthermore, it works perfectly fine to run an app from AndroidStudio on my phone. Some other guys had this problem years ago, http://forum.unity3d.com/threads/android-build-unauthorized-access-exception.186640/ . The solution there required using the editor function to build the project, or perforce. I'm using neither.