带有本地网络共享上的项目文件的Android Studio [英] Android Studio with Project Files on Local Network Share

查看:217
本文介绍了带有本地网络共享上的项目文件的Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的设置:

Android Studio项目文件位于Ubuntu 14.10盒子上的共享文件夹中.

Android Studio project files in a shared folder on an Ubuntu 14.10 box.

尝试在Windows 8机器上运行Android Studio 1.0.2,并将U:驱动器映射到包含项目文件的Ubuntu机器上的网络共享.

Trying to run Android Studio 1.0.2 on a Windows 8 box with the U: drive mapped to the network share on the Ubuntu box containing the project files.

当我尝试用Gradle文件同步项目"时,出现如下错误:

When I try to 'Sync Project with Gradle Files' I get errors like this:

错误:错误:无法创建目录:U:\ BackedUp \ Projects \ AndroidStudio \ ScorecardManager \ app \ build \ intermediates \ res \ debug \ values-v14

Error:Error: Failed to create directory: U:\BackedUp\Projects\AndroidStudio\ScorecardManager\app\build\intermediates\res\debug\values-v14

如果我创建要查找的文件夹(在本例中为14),然后重试,则会得到:

If I go create the folder it's looking for (in this case values-14) and try again then I get:

错误:任务':app:mergeDebugResources'的执行失败.

Error:Execution failed for task ':app:mergeDebugResources'.

U:\ BackedUp \ Projects \ AndroidStudio \ ScorecardManager \ app \ build \ intermediates \ res \ debug \ values-tl \ values.xml:错误:(系统找不到指定的路径)

U:\BackedUp\Projects\AndroidStudio\ScorecardManager\app\build\intermediates\res\debug\values-tl\values.xml: Error: (The system cannot find the path specified)

并且这种情况一直持续下去.我在每台计算机上使用相同的用户名.似乎每次我尝试同步时,项目文件的文件权限都会重置为755,这可能是问题所在,但不知道是否存在,以及如何解决.

And this goes on and on. I'm using the same user name on each computer. It seems that each time I try to sync, the file permissions on the project files get reset to 755 and that may be the problem but don't know if it is, and if so, how to fix it.

有什么想法吗?

谢谢,丰富

推荐答案

755权限是Samba与Linux交互的产物./etc/samba/smb.conf中有一对参数,您可以使用它们来获取所需的权限:

The 755 permissions thing is an artifact of Samba and Linux interacting. There are a pair of parameters in /etc/samba/smb.conf that you can play with to get the permissions you want:

create mask
directory mask

它们按每股应用.

这篇关于带有本地网络共享上的项目文件的Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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