Can't update Android Studio - Access Denied and java.io.FileNotFoundException

前端 未结 11 1934
青春惊慌失措
青春惊慌失措 2021-02-18 15:00

I\'m trying to update Android Studio from 0.5.1 to 0.5.2 on two separate Windows machines, one with Windows 7 Pro 64-bit and one with Windows 7 Enterprise 64-bit.

I get

11条回答
  •  执念已碎
    2021-02-18 15:17

    A workaround:

    1. Close Android Studio.
    2. Right-click "Android Studio" icon and select "Run as administrator".
    3. Go to "Help->Check for Update...", and go through the normal update process

    I realized after a few failed update attempts from 0.5.1 to 0.5.2 that I was no longer getting the Windows security prompt to allow the JetBrains IntellJ installer to proceed, as I had seen in previous successful updates. I'm not sure what changed from previous updates, but apparently the update process was unsuccessfully trying to access files without proper permissions. Elevating Android Studio to admin through the above process fixed the issue.

    As noted in the question above, this issue no longer seems to occur with the update from 0.5.2 to 0.5.3.

    EDIT

    To fix the next error I encountered with the Android 0.6.0 to Android 0.6.1 update, I shut down Studio and then restarted it, and let it sit overnight (more by coincidence than design). When I returned to the machine in the morning and ran the update, it succeeded. So, it seems there is some kind of long running process that blocks the update under certain conditions (likely immediately after startup - possibly the Gradle build process?). @Daniel Wilson's answer below should also work for this scenario.

提交回复
热议问题