I'm trying to update the sdk via the command line using this command
echo y | android update sdk --no-ui --all --filter build-tools-23.0.2
and I'm getting this error
echo y | android update sdk --no-ui --all --filter build-tools-23.0.2
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
XML verification failed for https://dl.google.com/android/repository/repository-11.xml.
Line 306:41, Error: org.xml.sax.SAXParseException; lineNumber: 306; columnNumber: 41; cvc-datatype-valid.1.2.1: '11b' is not a valid value for 'integer'.
Fetching URL: https://dl.google.com/android/repository/addon.xml
Validate XML: https://dl.google.com/android/repository/addon.xml
Parse XML: https://dl.google.com/android/repository/addon.xml
Fetching URL: https://dl.google.com/android/repository/addon-6.xml
Validate XML: https://dl.google.com/android/repository/addon-6.xml
Parse XML: https://dl.google.com/android/repository/addon-6.xml
Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Parse XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Validate XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Parse XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
XML verification failed for https://dl.google.com/android/repository/repository-11.xml.
Line 306:41, Error: org.xml.sax.SAXParseException; lineNumber: 306; columnNumber: 41; cvc-datatype-valid.1.2.1: '11b' is not a valid value for 'integer'.
Error: Ignoring unknown package filter 'build-tools-23.0.2'
Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.
The problem is probably here
Line 306:41, Error: org.xml.sax.SAXParseException; lineNumber: 306; columnNumber: 41; cvc-datatype-valid.1.2.1: '11b' is not a valid value for 'integer'.
This is running on a CircleCI box, and it has been running fine for a few days until now.
Anyone has an idea of whats happening?
Thanks in advance
The XML in question was versioned 11. The latest appears to be 12, and our builds are back on track as well. For a moment, the Android team appears to have fooled us.
Try rebuilding, but also note that some DNS etc could result in you not getting your update right away.
Related
I want to install the latest build tools using android package. On attempting to list the Android SDK packages:
$ android list sdk
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: File not found
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: File not found
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: File not found
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: File not found
Packages available for installation or update: 0
It seems that I need to update the sources. How can I do that?
I use a pool of Linux agents to build my app. Every now and then an agent causes a build failure with the error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':ComponentThatReqBuildToolsRev23.0.3:preBuild'.
> failed to find Build Tools revision 23.0.3
Because my build agents are remote (android is pre-installed /opt/android-sdk-linux/tools/android), I cannot preinstall the platform tools, build tools etc so have have a makefile included with my project. After checking out the code, it calls a method in the makefile:
#!/bin/bash
git submodule init
git submodule update
make updateSDK
# EOF
The method in the makefile is:
PACKAGES = "tools,platform-tools,build-tools-21.1.2,android-22,build-tools-23.0.3,android-21,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google,google_play_services"
updateSDK:
(sleep 5 && while [ 1 ]; do sleep 1; echo y; done) \
| android --clear-cache update sdk --no-ui --all \
--filter $(PACKAGES)
In successful cases, the log from Bamboo shows:
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
Parse XML: https://dl.google.com/android/repository/repository-11.xml
Fetching URL: https://dl.google.com/android/repository/addon.xml
Validate XML: https://dl.google.com/android/repository/addon.xml
Parse XML: https://dl.google.com/android/repository/addon.xml
Fetching URL: https://dl.google.com/android/repository/glass/addon.xml
Validate XML: https://dl.google.com/android/repository/glass/addon.xml
Parse XML: https://dl.google.com/android/repository/glass/addon.xml
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Parse XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
\Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Validate XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Parse XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
License id: android-sdk-license-c81a61d9
Used by:
- Android SDK Tools, revision 25.1.3
- Android SDK Platform-tools, revision 23.1
- Android SDK Build-tools, revision 23.0.3
- Android SDK Build-tools, revision 21.1.2
- SDK Platform Android 5.1.1, API 22, revision 2
- SDK Platform Android 5.0.1, API 21, revision 2
- Android Support Repository, revision 30
- Android Support Library, revision 23.2.1 (Obsolete)
- Google Play services, revision 29
- Google Repository, revision 25
...
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]:
y'. (There's a few of these)
Lots of lines of install code....
Finished task 'Update Android SDK' with result: Success
But every now and then, it connects to the wrong repository, either:
Fetching URL: https://dl.google.com/android/repository/repository-8.xml
or
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
It's identical to the above log except for the url. It gives this error:
Error: Ignoring unknown package filter 'build-tools-23.0.3'
In these cases, the xml file does not contain build tools 23.0.3, i.e. this bit:
<sdk:archive>
<!--Built on: Tue Mar 15 17:38:51 2016.-->
<sdk:size>40733174</sdk:size>
<sdk:checksum type="sha1">368f2600feac7e9b511b82f53d1f2240ae4a91a3</sdk:checksum>
<sdk:url>build-tools_r23.0.3-linux.zip</sdk:url>
<sdk:host-os>linux</sdk:host-os>
</sdk:archive><sdk:archive>
<!--Built on: Tue Mar 15 17:38:50 2016.-->
<sdk:size>39679533</sdk:size>
<sdk:checksum type="sha1">fbc98cd303fd15a31d472de6c03bd707829f00b0</sdk:checksum>
<sdk:url>build-tools_r23.0.3-macosx.zip</sdk:url>
<sdk:host-os>macosx</sdk:host-os></sdk:archive>
<sdk:archive>
<!--Built on: Tue Mar 15 17:38:48 2016.-->
<sdk:size>39869945</sdk:size>
<sdk:checksum type="sha1">c6d8266c6a3243c8f1e41b786c0e3cee4c781263</sdk:checksum>
<sdk:url>build-tools_r23.0.3-windows.zip</sdk:url>
<sdk:host-os>windows</sdk:host-os>
</sdk:archive>
I've tried clearing the cache on the agent pre-build, I've tried listing the tools each time, used http and https and to no avail.
Basically my question is, where does the android update sdk command get the repository-XX.xml url from? Can you force this to the latest version?
I've been using the following command to install abi until today.
echo y | android update sdk --no-ui --all --filter sys-img-armeabi-v7a-android-23
But now I got the following error.
Error: Ignoring unknown package filter 'sys-img-armeabi-v7a-android-23'
Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.
Is anyone having the same issue? I'm using Android SDK r24.4.1.
There is an issue about this:
https://code.google.com/p/android/issues/detail?id=206022
EDIT:
Working again
EDIT2: As of 2016-11-29, the problem remains:
android update sdk --no-ui --all --filter sys-img-armeabi-v7a-android-23 15:59:01 ☁ feat/TravisArchitecture ☀
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
Parse XML: https://dl.google.com/android/repository/repository-11.xml
Fetching URL: https://dl.google.com/android/repository/addon.xml
Validate XML: https://dl.google.com/android/repository/addon.xml
Parse XML: https://dl.google.com/android/repository/addon.xml
Fetching URL: https://dl.google.com/android/repository/glass/addon.xml
Validate XML: https://dl.google.com/android/repository/glass/addon.xml
Parse XML: https://dl.google.com/android/repository/glass/addon.xml
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Parse XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Error: Ignoring unknown package filter 'sys-img-armeabi-v7a-android-23'
Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.
I did run the below command according to the SDK Readme.txt placed inside the SDK:
$tools/android update sdk --no-ui
but I get the below errors :
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host dl.google.com
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
If I try to do the same using Android-Studio->SDK Manager I get the same error in the message Box.
Is this due to the no proxy settings?
It does sound like a proxy or other networking issue. Try pinging that address with ping dl.google.com . You should get back something like:
PING dl.l.google.com (216.58.219.110) 56(84) bytes of data.
64 bytes from mia07s25-in-f14.1e100.net (216.58.219.110): icmp_req=1 ttl=47 time=35.2 ms
64 bytes from mia07s25-in-f14.1e100.net (216.58.219.110): icmp_req=2 ttl=47 time=29.2 ms
until you cancel the command with Control-C.
While starting on eclipse I am getting below message:
Android SDK ping has encountered a problem,
ping usageServer failed
OnClick on details:
pingUsageServer failed
Bad version: 22.0.5
I know this question is already posted, but I didn't find any relevant solution for this. I am using windows 8.
While running the SDK:
////////////////////////////////////////////
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Validate XML: http://dl-ssl.google.com/android/repository/repository.xml
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Done loading packages.
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Validate XML: http://dl-ssl.google.com/android/repository/repository.xml
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Done loading packages.
Finally I solved the issue by updating hosts file.C:\Windows\System32\Drivers\etc, in last line I updated 74.125.237.1 dl-ssl.google.com, and second thing I change the windows language Hindi to english.
It's mainly because when you have other languages installed in parallel to English.
For correcting this issue go to: control panel > language > Advance Settings. Set Override for Windows display language to English. Do the same for Override for default input method and then restart Eclipse.