Starting Windows 8 (as a local administrator) I needed a patch from the latest version to 0.9.2. However, I encountered the “inability to delete files” problem when trying to install the patch directly from Android Studio (it works as an administrator). After you downloaded 100 MEG (Aussie slow Internet) twice, I needed something smarter. The following is what worked for me (your mileage may vary):
- I found the JAR download in the C: \ Users \ MYUSERNAME \ AppData \ Local \ Temp directory. It had a strange extension, but obviously had a patch file from the file date / time stamp.
- So, I copied this file to a good directory (c: \ temp), renaming the extension to ".jar"
- My Android Studio installation is located in c: \ program files (x86) \ Android \ android-studio - so using Windows Explorer I gave the user "everyone" full control over the folder and all subfolders. Yes, I know this is bad practice on a prod server, but listen to me.
I open a command window in c: \ temp and enter the following command line (where the name of the .jar file is the JAR file that I found and renamed):
java -classpath jetbrains.patch.jar.androidstudio.jar install "c: \ program files (x86) \ Android \ android-studio"
This is the beginning of a patch that has completed successfully. Giving “everyone” full control meant that the delete operations were completed in order — at least that's my belief. I delete all users after the patch is completed (I'm sure you thought that I would forget to do it!).
- Launched Android Studio and checked the current version - PHEW!
Good luck with the manual fix in Windows 8. I really like Android Studio, but, of course, this is an inconvenient side in this regard.
source share