Android Studio 3.1.1 CreateProcess error=206, The filename or extension is too long

前端 未结 5 1778
难免孤独
难免孤独 2021-02-05 12:01

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

5条回答
  •  北海茫月
    2021-02-05 12:21

    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.

提交回复
热议问题