- Home /
Access is denied while creating APK... WHY?!
Error: Failed to create 'C:\Users\\Desktop\\Temp\StagingArea\Package_unaligned.apks': Access is denied UnityEditor.HostView:OnGUI()
Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details. java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="C:/Program Files (x86)/Android/android-sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity2/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" - stderr[ Error: Failed to create 'C:\Users\\Desktop\\Temp\StagingArea\Package_unaligned.apks': Access is denied ] stdout[ ]
Please don't post 6 versions of the same question, wait until your post is reviewed by a moderator and published. Review the FAQ for more info on karma if needed.
DouglasGD I think that have more information on the console. If have, pass the full information, please ( expand console to see all ).
Please post comments as comments. Answers are for solutions.
I'm having this problem too. It'd nice if a solution were linked here (even better than quibbling about how to appropriately ask the question.)
Your answer
![](https://koobas.hobune.stream/wayback/20220613134314im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why doesn't my scene update when deploying to Android? 4 Answers
The apk built by unity not being recognized by android devices as an apk. 0 Answers
How to include assets in an android plugin (aar)? 3 Answers
my android build is of 29mb but when i install it ,size become 50mb in device 0 Answers
Android dev - APK builder failed 0 Answers