Reputation: 492
$ repo sync
for
Build LMY47V android-5.1.1_r1 Lollipop
results into error:
Fetching projects: 62% (302/486) Fetching project platform/frameworks/base
fatal: Not a git repository: '/home/ashish/askdnx/.repo/projects/frameworks/base.git'
The repo sync goes on for sometime and then fails with errors.
What could be a fix for this ? Can I use
$ git clone https://android.googlesource.com/platform/frameworks/base.git
Upvotes: 0
Views: 8384
Reputation: 228
Find all necessary .git files in .repo directory and delete them. For me, it was working ok
Upvotes: 1
Reputation: 492
Only solution I found to fix the above problem is to start FRESH.
As per the above post
rm -rf ~/.repo/
didnt quite remove the files for me. Please try that too. Thanks to @shkschneider for giving that answer. So bascially you have to remove bin folder and the .repo folder manually before you start fresh.
Tips for starting fresh:
USE repo sync -j1
for sync the Android Source Tree. It takes time but it is the best solution to problems like remote hung up unexpectedly.
I may be wrong in this. but none of the methods found on the internet helped me.
Upvotes: 3
Reputation: 18243
You should not use git clone
to checkout Android source code.
Use repo
all the way:
curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod a+x repo
repo init -u --config-name https://android.googlesource.com/platform/manifest -b android-5.1.1_r1
repo sync
If that does not work, clean up your repo files:
rm -rf ~/.repo/
Upvotes: 2