We experienced the exact same issue and resolved it by changing 2 files:
In AkUtitlies around line 590:
var files = dir.GetFiles();
foreach (var file in files)
{
var temppath = System.IO.Path.Combine(destDirName, file.Name);
//Edit by Shanghai Vancouver Film School Game Design
System.IO.FileInfo fileInfo = new System.IO.FileInfo(temppath);
if (fileInfo.Exists)
fileInfo.IsReadOnly = false;
System.IO.FileInfo secondFileInfo = file.CopyTo(temppath, true);
secondFileInfo.IsReadOnly = false;
}
And AkBuildPreprocessor around line 129:
//Edit by Shanghai Vancouver Film School Game Design
System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(destinationFolder);
if (dirInfo.Exists)
{
foreach (System.IO.FileInfo f in dirInfo.GetFiles())
{
f.IsReadOnly = false;
}
}
System.IO.Directory.Delete(destinationFolder, true);
UnityEngine.Debug.Log("WwiseUnity: Deleting streaming assets folder <" + destinationFolder + ">");
Hope it helps!