错误:写入时出错****文件名太长

时间:2018-04-04 20:57:37

标签: android android-gradle dagger-2

我正在尝试使用我的笔记本电脑和Ubuntu组装一个Android版本,但我不断在匕首生成的文件上出现错误:

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

这个错误非常奇怪,因为在其他具有相同代码和相同SO的计算机中,我能够毫无问题地编译项目。

有没有人遇到过这个问题?

2 个答案:

答案 0 :(得分:2)

这里的问题是我在/ home分区中使用了加密文件夹。我刚刚在加密分区外创建了一个新文件夹,问题就解决了。

这是因为加密文件夹只接受144字节的类名文件。

希望将来帮助某人。

答案 1 :(得分:0)

这里有同样的问题! 我的解决方案是使用“ dd”创建虚拟映像,将其格式化为ext4并将其安装在我的工作文件夹中。像魅力一样工作!

像这样的东西: https://www.tecmint.com/create-virtual-harddisk-volume-in-linux/

相关问题