Tuesday, 3 July 2018

File path too long on windows, keep below 240 characters?



Generally our tyro's might get this kinda of issues because of having a deep || hard folder linking like in a tree hierarchy. For Example: 

D:\user\rajendhiran\personal\training\projects\android_projects\application\........

Code Fix to this issue:
Just do a below code change in your root build directory, since that is where most of the path issues will arise.


1
2
3
4
5
6
allprojects {
    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
    repositories {
       ...
    }
}

Reference Link: http://goo.gl/E6BNoU