The following problems have occurred when adding the files: fatal: unable to Fil

When using git for add operations, the following exceptions sometimes occur:

 

fatal: unable to stat 'SlidingMenu/build/tmp/expandedArchives/classes.jar_9xsqkluthu17h6nhfgy4rp26h/android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoJellyBeanMr2.class': Filename too long
 during executing git -c core.quotepath=false add --ignore-errors -- SlidingMenu/build/intermediates/classes/release/com/jeremyfeinstein/slidingmenu/lib/SlidingMenu$CanvasTransformer.class

 

 

 

 

If you encounter the above problems, you can take the following actions:

 

  1. If your git is not 1.9 or above, upgrade to 1.9 or above
  2. Login to Git Bash
  3. Come to the Git repository where you reported the long paths issue
  4. Type in Git Bashgit config core.longpaths true



 

 

 

Then it is found that the normal add operation can be performed.

 



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643483&siteId=291194637