Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
837 views
in Technique[技术] by (71.8m points)

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

There is a common problem in using android sdk manager but there isn't any solution for this problem all over the web even in the stackoverflow:

for updating components of android sdk I write in the command prompt:

C:sdkoolsin>sdkmanager --list

the erros that appear are these:

Warning: Errors during XML parse:
Warning: White spaces are required between publicId and systemId.
Warning: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 62; White spaces are required between publicId and systemId.
Warning: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 62; White spaces are required between publicId and systemId.]
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: White spaces are required between publicId and systemId.
Warning: Failed to parse source list at https://dl.google.com/android/repository/addons_list-3.xml

Please everyone who have experienced the same problem or everyone who know the solution, help this problem be solved.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...