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 . .
Related
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
I am using Github to sync my Android Studio Project.
I have been able to commit and push successfully for over a month.
After adding some files, I received this error.
12:44:45 PM Push failed: fatal: repository 'https://rrtigga#github.com/rrtigga.GetDisciplined1_0.git/' not found
However, the repo exists...
Here is a snippet from my terminal:
Rohits-MacBook-Air:GetDisciplined1_0 Spicycurryman$ git remote add origin rrtigga#github.com:rrtigga/GetDisciplined1_0.git
fatal: remote origin already exists.
Rohits-MacBook-Air:GetDisciplined1_0 Spicycurryman$
This is kind of an awkward error... I did some research and was unable to produce a solution.
GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently)
EDIT: It really exists:
https://github.com/rrtigga/GetDisciplined1_0
What is the problem here and how can I fix it?
You have a remote called origin which is configured to point to https://github.com/rrtigga.GetDisciplined1_0.git/, which is not the correct URL for your repository. You should be using either https://github.com/rrtigga/GetDisciplined1_0.git for access over HTTPS, or git#github.com:rrtigga/GetDisciplined1_0.git for SSH.
The error "remote origin already exists" means what it says: you're trying to add a remote with the same name as one that already exists. You need to either delete it first with git remote rm origin, or use git remote set-url to change the URL of the existing remote.
I am trying to download android_4.2_r1 source code. And I am using Ubuntu 12.04. I've installed jdk 1.6, Python 2.7, Git..
I downloaded repo use this code "$ curl http://code.google.com/p/git-repo/downloads/detail?name=repo-1.12 ~/bin/repo" (Since the official one is forbidden in China... )
Anyway, I initiated repo successfully.
But when I try to 'repo sync' I meet the error:
brendon#brendon-Lenovo:~/android4.2/.repo$ repo sync
fatal: remote error: access denied or repository not exported: /platform/abi/cpp.git
error: Cannot fetch platform/abi/cpp
Does Anyone know the reason? Thank you!
It is because some fetch link is forbidden in China...
We just need to choose the one that can be used here.
I recommend this one: git://Android.git.linaro.org/
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.
repo sync fails with the following message:
$ repo sync
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch repo
It seems that kernel.org has been hacked, so this is what is causing the issue.
Is there a workaround to resolve this issue and not to completely switch to different Android repository (such as those on github, etc)?
All of the code is now in github at http://www.github.com/android. I don't believe Google has made the necessary changes to the manifest (or the repo tool itself, which has a hardcoded URL to kernel.org) to pull from there easily. You could probably make it work with some hacking around.