Trouble downloading android source - android

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.

Related

Problems with uploading to github

When trying to make a push, this error is returned. And even on a new empty project. The authorization was re-passed with a token. What could be the problem?
Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
Caused by: java.net.SocketException: Unexpected end of file from server
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:27)
... 1 more
error: unable to read askpass response from '/Users/gukov/Library/Caches/Google/AndroidStudio2021.2/tmp/intellij-git-askpass-local.sh'
fatal: could not read Username for 'https://github.com': Device not configured
Enable Use credential helper
Preference -> Git -> Check Use credential helper if not checked

Github Push failed: Failed with error: RPC failed; curl 56 LibreSSL SSL_read: error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3

When i am Trying to push my android project to GitHub i got this error
Failed with error: RPC failed; curl 56 LibreSSL SSL_read:
error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record
mac, errno 0 The remote end hung up unexpectedly The remote end hung
up unexpectedly
It can be caused by large files in your repo. Github has 100 MB limit for a single file in a repo. You might want to check it by using git lfs migrate info.
I've had the same issue but this particular error was intermittent. I occasionally have seen "error: GH001: Large files detected. You may want to try Git Large File Storage". Also when I switched to SSH for remote origin instead of HTTPS it gave me broken pipe error message.
I already used LFS but my .gitattributes missed some large files so I've updated it and run git lfs migrate import --include="*.fileextension" then pushed to github without an error. See https://help.github.com/articles/moving-a-file-in-your-repository-to-git-large-file-storage/.

Error while download Robolectric dependencies

I'm getting some error by trying to use Robolectric in my company.
I have configured the proxy, but I don't get to download Robolectric dependencies:
Downloading:
org/robolectric/android-all/5.0.0_r2-robolectric-1/android-all-5.0.0_r2-robolectric-1.pom from repository sonatype at
https://oss.sonatype.org/content/groups/public/
[WARNING] Unable to
get resource 'org.robolectric:android-all:pom:5.0.0_r2-robolectric-1'
from repository sonatype
(https://oss.sonatype.org/content/groups/public/): Error transferring
file: Connection timed out: connectError transferring file: Connection
timed out: connect . .

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

Downloading android SDK on Ubuntu PC

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.

Categories

Resources