Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: error while writing **** File name too long

I'm trying to assemble an Android build with my laptop with Ubuntu but I'm getting constantly the error on a file generated by dagger:

error: error while writing DaggerMyLibraryBookmarksComponent$com_testx_baseapplication_presentation_common_dagger_component_ApplicationComponent_userManagerRepository.class (File name too long)

This error is quite weird due that in other computers with same code and same SO I'm able to compile the project without any issue.

Has anyone experienced this issue?

like image 587
MarcForn Avatar asked Apr 04 '18 20:04

MarcForn


People also ask

How do you fix a filename that is too long?

To do this, use one of the following methods: Rename the file so that it has a shorter name. Rename one or more folders that contain the file so that they have shorter names. Move the file to a folder with a shorter path name.

How do I fix the filename is too long for the destination folder?

The extract error you might see is, “The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a location that has a shorter path.” You may receive this error because File Explorer can not copy/delete/rename any pathname longer than 256 characters.


1 Answers

The problem here was that I was using an encrypted folder in my /home partition. I just created a new folder outside the encrypted partition and the problem was solved.

This is due encrypted folders only accepts 144bytes class name files.

like image 150
MarcForn Avatar answered Sep 21 '22 15:09

MarcForn