码迷,mamicode.com
首页 > 移动开发 > 详细

git clone android source code抛出error: invalid path 'luni/src/test/resources/org/apache/harmony/tests/java/lang/test?.properties'

时间:2020-07-27 17:47:47      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:status   form   led   obj   clone   erro   cee   use   tor   

今天更新libcore源码时,遇到error: invalid path ‘luni/src/test/resources/org/apache/harmony/tests/java/lang/test?.properties‘,原因是android源码中文件的命名不符合windows系统的规范。

$ git clone https://android.googlesource.com/platform/libcore
Cloning into ‘libcore‘...
remote: Sending approximately 113.05 MiB ...
remote: Counting objects: 879, done
remote: Total 278583 (delta 166925), reused 278583 (delta 166925)
Receiving objects: 100% (278583/278583), 113.05 MiB | 23.11 MiB/s, done.
Resolving deltas: 100% (166925/166925), done.
error: invalid path ‘luni/src/test/resources/org/apache/harmony/tests/java/lang/test?.properties‘
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with ‘git status‘
and retry with ‘git restore --source=HEAD :/‘

解决方案:

到已下载的libcore目录下,执行提示的语句:

git restore --source=HEAD :/

git clone android source code抛出error: invalid path 'luni/src/test/resources/org/apache/harmony/tests/java/lang/test?.properties'

标签:status   form   led   obj   clone   erro   cee   use   tor   

原文地址:https://www.cnblogs.com/hilda-chen/p/13385376.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!