Downloading android SDK on Ubuntu PC - android

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.

Related

Http failure response for xxx 0 Unknown Error

PostGraphile v4.9.2 server listening on port 5001
‣ GraphQL API: http://0.0.0.0:5001/graphql
how can i change http to https. i mean, i want https://0.0.0.0:5001/graphql
because, i am getting error while debugging my ionic capacitor app for android
E/Capacitor/Console: File: http://localhost/vendor-es2018.js - Line 41539 -
Msg: ERROR Error: Http failure response for http:// mydomain .com:5001/graphql: 0 Unknown Error
i think it is about http problem but as you see it is unknown error. Thanks in advance
i found the solution here: How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?
i allowed http requests in manifest.xml and i added networkSecurityConfig.xml
Thank you all

Update Android SDK sources

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?

Unable to repo sync cyanogenmod source stuck at 99%

Fetching projects: 97% (505/520) Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_audio
fatal: Couldn't find remote ref refs/heads/stable/cm-13.0-ZNH2KB
Unexpected end of command stream
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_audio
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching projects: 98% (510/520) Fetching project CyanogenMod/android_hardware_qcom_audio
fatal: Couldn't find remote ref refs/heads/stable/cm-13.0-ZNH2KB
Unexpected end of command stream
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_audio
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching projects: 99% (515/520) Fetching project CyanogenMod/android_hardware_qcom_media
fatal: Couldn't find remote ref refs/heads/stable/cm-13.0-ZNH2KB
Unexpected end of command stream
fatal: Couldn't find remote ref refs/heads/stable/cm-13.0-ZNH2KB
Unexpected end of command stream
error: Cannot fetch CyanogenMod/android_device_qcom_sepolicy
error: Cannot fetch CyanogenMod/android_vendor_qcom_opensource_dataservices
error: Cannot fetch CyanogenMod/android_vendor_qcom_opensource_time-services
error: Cannot fetch CyanogenMod/android_vendor_qcom_opensource_dpm
error: Exited sync due to fetch errors
Use--force-broken or -f to recover from network errors.
So, use repo sync like this:
repo sync -j8 -f
If you still get errors, add a comment.
Difficulties syncing the source tree (TCP issues)
Symptom: repo sync hangs while syncing, often when it's completed 99% of the sync.
Cause: Some settings in the TCP/IP stack cause difficulties in some network environments, so that repo sync neither completes nor fails.
Fix: On Linux, enter the command:
sysctl -w net.ipv4.tcp_window_scaling=0
On macOS, disable the rfc1323 extension in the network settings.
https://source.android.com/setup/build/known-issues

Trouble downloading android source

I am using a mac system and while i do a repo sync for downloading the android source.
I get this error in between. What can i do to solve this issue ?
From /Users/ArunAbraham/ANDROID_DIRECTORY/.repo/projects/docs/source.android.com.git/clone.bundle
* [new branch] master -> aosp/master
Downloading device/ti/panda: 68% (17MB/25MB) error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/external/android-mock/info/refs
fatal: HTTP request failed
Downloading device/ti/panda: 76% (19MB/25MB) error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/docs/source.android.com/info/refs
fatal: HTTP request failed
Downloading device/ti/panda: 80% (20MB/25MB) error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/external/android-mock/info/refs
fatal: HTTP request failed
Downloading device/ti/panda: 88% (22MB/25MB) error: Cannot fetch platform/external/android-mock
I had to do the Using Authentication part in http://source.android.com/source/downloading.html.

Android SDK install message "Failed to fetch URLreason: Invalid argument: connect"?

I'm trying to install the SDK but when downloading the repositories I keep getting the error
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml,
reason: Invalid argument: connect".
And the green download bar doesn't move. Does anyone know how to deal with this?

Categories

Resources