error in updating android sdk (org.xml.sax.SAXParseException)

老子叫甜甜 提交于 2019-11-29 16:27:53

First of all, try to open https://dl.google.com/android/repository/repository2-1.xml url in your web browser. This url opens a page containing a very lengthy xml file. If the This product is not available in your country message from Google appeared, you must use a VPN. If you could open the above url after using VPN then do following.

In Android Studio (2.3.3) open Settings from File>Settings [Ctrl+Alt+S]. In the left panel go to Appearance & Behavior>System Settings>HTTP Proxy. Here select Auto-detect proxy settings radio button (No proxy is selected by default). Now (while your VPN is enabled) you should see new android SDK packages that are availaible for download (that weren't availaible before doing this step for me) in Appearance & Behavior>System Settings>Android SDK.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!