今天在同步Android Source时出

     error: .repo/manifests/: contains uncommitted changes

 google查找一阵子,无果,虽然也有人遇到但却没有给出解决方法。最后试了一下以下方法,得以解决。

解决方法:

第一种方法:

  1. 删除Andriod/source/.repo/目录下除了projects目录以外的所有目录。
  2. 重新执行命令
1 repo init -u git://android.git.kernel.org/platform/manifest.git
2 repo sync

        此时因为projects目录文件没有删除,所以重新同步不会重新下载所有文件,所以不会花费很长时间。

第二种方法: 

   发现.repo/manifests下面有个.git文件夹。git commit -a就ok了

第三种方法:

先把.repo目录删干净再init。
rm  -r .repo

相关文章:

  • 2021-10-12
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-07-05
相关资源
相似解决方案