Search code examples
androidgitandroid-sourcerepo

Android Repo sync Fatal error


$ 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 

Solution

  • 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.