Error With Sdk Package Download In Android Studio
java.io.IOException: Cannot download , response: 200 OK Warning: An error occurred while preparing SDK package Android Support Repository: Cannot download , response: 200 OK
Solution 1:
I had this similar issue below worked for me. The solution for this is:
It will work.
Solution 2:
delete uncompleted download in "[Android SDK folder]\.downloadIntermediates". i solved my problem by this method.
Solution 3:
you can manual download sdk:
- https://dl.google.com/android/repository/platform-29_r04.zip
- https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip
- https://dl.google.com/android/repository/build-tools_r29.0.3-windows.zip
- https://dl.google.com/android/repository/emulator-windows-6306047.zip
- https://dl.google.com/android/repository/sources-29_r01.zip
- https://dl.google.com/android/repository/platform-tools_r29.0.6-windows.zip
Unpack to
- C:\Android\Sdk\platforms\android-2
- C:\Android\Sdk\patcher\v4
- C:\Android\Sdk\build-tools\29.0.3
- C:\Android\Sdk\emulator
- C:\Android\Sdk\sources\android-29
- C:\Android\Sdk\platform-tools
Parsing
- C:\Android\Sdk\build-tools\29.0.3\package.xml
- C:\Android\Sdk\emulator\package.xml
- C:\Android\Sdk\patcher\v4\package.xml
- C:\Android\Sdk\platform-tools\package.xml
- C:\Android\Sdk\platforms\android-29\package.xml
- C:\Android\Sdk\sources\android-29\package.xml
Solution 4:
I have a similar problem.
And I notice some setting about Force https//... to be fetched using http://...
After using it, my download run normally:
Solution 5:
run the studio.sh script with sudo:
"sudo ./studio.sh"
if that does not work run:
"sudo chmod 777 -R /opt"
without quotes should work
Post a Comment for "Error With Sdk Package Download In Android Studio"