Error with SDK package download in Android Studio

后端 未结 15 901
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 17:45

java.io.IOException: Cannot download , response: 200 OK Warning: An error occurred while preparing SDK package Android Support Repository: Cannot downloa

15条回答
  •  一向
    一向 (楼主)
    2020-12-28 17:55

    As shown in the android SDK video ./studio.sh has to be run, however if run without sudo or su, this might give problems like these. So you should run with sudo or su as shown below:

    • sudo ./studio.sh(or /path/to/studio.sh)

    or if you want to run as root

    • su
    • Password:root password
    • ./studio.sh or (or /path/to/studio.sh) This should fix the problem There might be a problem with /tmp if it is on a different partition and the partition has less space than needed to install

    Hope this helps.

提交回复
热议问题