Android Studio 3.1.1 CreateProcess Error=206, The Filename Or Extension Is Too Long


Answer :

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.


For me this worked.

  1. Go to Build -> Clean.
  2. File -> Invalidate Cache and Restart

Or

It might be due to network issue. Please check connectivity.


Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy