I am getting the below exception when building the app from Android Studio It says
CreateProcess error=206, The filename or extension is too long at
I guess you are the windows user, there is a file path limit of 8191 in Windows XP and above.
http://support.microsoft.com/kb/830473/en-us
The simplest way this shorten the file path, like change the project folder into D:\, and refact your project path, and always use ASCII chars for the folder name. UTF-8 chars use 2-3 bytes. or move useless dependency. or change to MAC platform. ;)
The reason is at the compile step, there is a command like javac xxxx, combine all dependences's path in one line.
If you are using intellij idea you can shorten command line by doing the following:
For me this worked.
Or
It might be due to network issue. Please check connectivity.
In my case all I had to do was move the project folder from it's original location to the desktop.
The new project location became - C:\Users\YourPCName\Desktop\YourProjectName
Stumbled upon this recently as well. This worked for me:
cmd
gpedit.msc
Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem