Cannot upgrade Android SDK

后端 未结 4 2066
刺人心
刺人心 2021-01-18 15:19

I have closed every window, restarted the computer. But Eclipse is telling me: \"C:\\Program Files\\android-sdk\\tools is being accessed....I even deleted the directory but

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 16:22

    Supposedly, if you use the SDK Manager.exe program rather than tools\android.bat, it works. However, I've never had any luck with that.

    My traditional approach has been:

    • Duplicate the tools\ directory to create a foo\ directory
    • Adjust your PATH and other environment variables to point to foo\
    • Run the tools\android.bat out of foo\
    • Do the upgrade, which should work
    • When done, close out of the SDK and AVD Manager, revert your PATH and such to point back to tools\, and get rid of the foo\ directory

提交回复
热议问题