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

前端 未结 5 1785
难免孤独
难免孤独 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:39

    Stumbled upon this recently as well. This worked for me:

    1. subst X: C:\Users$PATH_TO_YOUR_PROJECT to create a virtual mount
    2. Open cmd
      • Type gpedit.msc
      • Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem
      • enable Win32 long paths
      • reboot

提交回复
热议问题