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:
- If your git is not 1.9 or above, upgrade to 1.9 or above
- Login to Git Bash
- Come to the Git repository where you reported the long paths issue
- Type in Git Bash
git config core.longpaths true
Then it is found that the normal add operation can be performed.