Here when I run repo init -u git#foo.bar -b dev on windows , and it shows a warning repo init warning: failed to restrict file handles, seems like some files get broken, any one could do me a favor ? thanks all the time : )
Install previous version of git v2.15.1.windows.2
Related
Downloading android-8.1.0_r20. After downloading 45gb this error occurs.
Error message in the terminal:
error: libcore/: platform/libcore checkout ed54621bf38a761388fe5ea56d71c64befaa9f40
error: Cannot checkout platform/libcore
Checking out: 100% (592/592), done in 15m55.329s
error: Unable to fully sync the tree.
error: Checking out local projects failed.
Failing repos:
external/libunwind
external/kmod
frameworks/compile/slang
external/autotest
libcore
Try re-running with "-j1 --fail-fast" to exit at the first error.
The source link of this git tag
https://android.googlesource.com/platform/libcore/+/refs/tags/android-8.1.0_r20
Can anyone please tell me how to resolve this?
This issue is probably due to the Partition type of your drive, where you are downloading the code.
Please make sure the drive Partition type is a Linux Filesystem (i.e. ext4).
It's strange but such issue happens when I try to sync AOSP on my Ubuntu PC to external usb-ssd drive but syncing to main drive to home directory works fine.
Moreover to reproduce such issue it is enough to clone one of the mentioned repos, e.g. libcore:
$ git clone https://android.googlesource.com/platform/libcore -b android-11.0.0_r45
and then check it with git status,
on main drive:
$ git status
Not currently on any branch.
nothing to commit, working tree clean
on external usb-ssd drive:
$ git status
Not currently on any branch.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: Android.bp
deleted: AndroidTest-core-tests.xml
deleted: CleanSpec.mk
deleted: JavaLibrary.bp
deleted: LICENSE
deleted: NOTICE
...
<6590 other deleted files>
...
Untracked files:
(use "git add <file>..." to include in what will be committed)
Android.bp
AndroidTest-core-tests.xml
CleanSpec.mk
JavaLibrary.bp
LICENSE
...
<total 34 untracked files>
...
xml/
Summary:
If you use external drive for cloning AOSP try to do it into main drive (home directory).
I followed celadon guide to build android source for my x86 platform device.
https://01.org/projectceladon/documentation/getting-started/build-source#build-os-image
$ make clobber
$ source build/envsetup.sh
$ lunch caas-userdebug
few minutes later, I got this error:
Project vendor/intel/external/project-celadon/audio
Applying 01_679470_1-Tuning-period_size-and-period_count-for-QEMU-KVM.patch
ALERT : Conflicts Observed while patch application !!
prebuilts/clang/host/linux-x86
Error: Please resolve Conflict(s) and re-run lunch...
Executing mixin update...
Updater-caas: processing: device/intel/project-celadon/caas/mixins.spec
Updater-caas: mixinsdir: device/intel/mixins/groups
I have no idea to resolve this problem, is there someone Who has encountered a similar problem?
Thanks!
I reset my source code by:
repo forall -vc "git reset --hard"
And it worked.
When running build_aar.py for libwebrtc android, i got this error:
ERROR at //build/config/BUILDCONFIG.gn:564:5: Dependency not allowed.
target(_target_type, target_name) {
^----------------------------------
The item //rtc_tools:psnr_ssim_analyzer
can not depend on //third_party/abseil-cpp/absl/flags:usage
because it is not in //third_party/abseil-cpp/absl/flags:usage's visibility list: [
//third_party/abseil-cpp/absl/flags:*
]
Can any one help me to figure it out?
You certainly did not sync the project with his dependencies.
gclient sync or gclient sync -D --force --reset if needed.
See chromium doc.
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 repo to sync my local android source code. I have followed the instructions on the android source website: http://source.android.com/source/downloading.html
When I try to do repo init:
repo init -u http://android.googlesource.com/platform/manifest
I get the following error:
fatal: Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error unknown url type: https
I have followed multiple threads on google and have modified my repo scripts and changed the https to http in the REPO_URL but I am continuing to get the same error.
What else do I need to do?
Please help.
Markus
I have answered my own question.
Since I last did a repo sync I had cleared my HTTP_PROXY and HTTPS_PROXY variables.
export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>#<proxy_server>:<proxy_port>
export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>#<proxy_server>:<proxy_port>
Running this for my company settings fixed the problem.
Markus