Android的工作室:错误的文件名,目录名或卷标语法不正确 [英] Android Studio: Error The filename, directory name, or volume label syntax is incorrect
问题描述
我使用Windows 7 64位,并切换到最新的Android Studio和我得到这个错误有:
错误:出现问题的项目配置:MyProject的'。结果
无法正常化的文件路径C:\\用户\\我\\ APPS \\的Android \\ android的\\ MyProject的\\ myproject的:Facebook的SDK \\螺栓,Android的1.1.2.jar。
错误的文件名,目录名或卷标语法不正确
块引用>这发生了版本
Android的工作室:1.0.1
摇篮:2.2.1解决方案@ScottBarta和@KenWhite在评论中解决了这个(在
:
无效的文件名)
的问题是,目录名是无效的,因为@Scott
表示。 Windows不允许冒号(:
)的文件名,因为这是
驱动器。C:
是有效的,MyProject的:Facebook的SDK
并非如
MyProject的:
不是一个有效的驱动器盘符
块引用>无效信是
< (少于)
> (比...更棒)
: (结肠)
(双引号)
/(正斜杠)
\\(反斜杠)
| (竖线或管道)
? (问号)
*(星号)
块引用>由于任择议定书表示,只是将其删除:
删除它,现在它开始为我工作。
块引用>I am using Windows 7 64bit and switched to the latest Android Studio and I am getting this error with:
Error:A problem occurred configuring project ':myproject'.
Could not normalize path for file 'C:\Users\me\Apps\Android\android\myproject\myproject:facebook-sdk\bolts-android-1.1.2.jar'.Error The filename, directory name, or volume label syntax is incorrect
This occurred for versions
Android Studio: 1.0.1
Gradle: 2.2.1解决方案@ScottBarta and @KenWhite solved this in the comments (the
:
is invalid in a filename)The problem is that the directory name is invalid, as @Scott indicated. Windows does not allow colons (
:
) in a filename, as that is the drive separator.C:
is valid,myproject:facebook-sdk
is not, asmyproject:
is not a valid drive letter.Other invalid letters are
< (less than) > (greater than) : (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk)
As the OP said, just remove it:
removed it and now it started working for me.
这篇关于Android的工作室:错误的文件名,目录名或卷标语法不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!