Android Studio:错误文件名、目录名或卷标语法不正确 [英] Android Studio: Error The filename, directory name, or volume label syntax is incorrect

查看:135
本文介绍了Android Studio:错误文件名、目录名或卷标语法不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 64 位 Windows 7 并切换到最新的 Android Studio,但出现以下错误:

I am using Windows 7 64bit and switched to the latest Android Studio and I am getting this error with:

错误:配置项目:myproject"时出现问题.
无法标准化文件C:\Users\me\Apps\Android\android\myproject\myproject:facebook-sdk\bolts-android-1.1.2.jar"的路径.

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

这发生在版本
安卓工作室:1.0.1
摇篮:2.2.1

This occurred for versions
Android Studio: 1.0.1
Gradle: 2.2.1

推荐答案

如果语法不匹配就会出现这个问题.请找到以下场景,
我在 build.gradle 文件中犯了一个错误

This issue will come if the syntax is mismatched. Please find below scenario,
I did one mistake in my build.gradle file

    compile files(':libs/lib_ivy_android')

我后来修改如下

    compile files(':libs/lib_ivy_android.jar')

然后我也遇到了同样的错误,我对此进行了一些研发,然后最后我进行了如下修改,然后没有错误

then also I got same error I did some R&D about this then finally I modified like below then no error

    compile files('libs/lib_ivy_android.jar')

所以这可能是您的解决方案.

So this might be a solution for you.

这篇关于Android Studio:错误文件名、目录名或卷标语法不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆