Android Studio unable to download SDK?
java.io.IOException: Unable to load, Response: 200 OK Warning: Error preparing SDK for Android Support: Unable to load, Response: 200 OK. java.io.IOException: Unable to download ' https://dl.google.com/android/repository/emulator-windows-3833124.zip ': dl.google.com Attention! An error occurred while preparing the SDK. Android Emulator : Unable to load ' https://dl.google.com/android/repository/emulator-windows-3833124.zip ': dl.google.com. java.io.IOException: Unable to load 'Warning: An Error preparing the SDK. Google Repository: Can not download
source to share
As shown in Android SDK file./studio.sh needs to be started, however, if launched without sudo or su, it can cause problems like this. Therefore, you must work 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's on a different partition and the partition has less space than the installation needs
Hope this helps.
source to share