在不同的Windows和Windows之间共享Android Studio项目. Mac机器 [英] Share Android Studio project between different Windows & Mac machines

查看:234
本文介绍了在不同的Windows和Windows之间共享Android Studio项目. Mac机器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Windows下构建的Android Studio项目,现在,当我将所有文件夹复制到Mac并尝试在Mac版本的Android Studio中打开它时,它会提示很多错误,其中大多数都指向Windows计算机上的路径. 如何修改项目,使所有路径都是相对的,而不是机器(或绝对路径)相关的?

I have an Android Studio project built under Windows, now when I copy all folder to Mac and try to open it in Mac version of Android Studio it prompts for lots of error, most them pointing to a path on Windows machine. How can I modify project so all paths be relative and not machine (or absolute path) dependent?

推荐答案

您无需修改​​任何内容,因为可共享文件中根本不应该包含绝对路径.仅共享源文件和构建脚本文件( build.gradle settings.gradle 和Gradle包装器文件).不要共享项目文件( .iml 文件或 .idea 文件夹).不要共享单个计算机本地的 local.properties 文件.

You shouldn't have to modify anything because the shareable files shouldn't have absolute paths in them at all. Share only the source files and build script files (build.gradle and settings.gradle and the Gradle wrapper files). Don't share project files (.iml files or the .idea folder). Don't share the local.properties file, which is local to an individual machine.

这篇关于在不同的Windows和Windows之间共享Android Studio项目. Mac机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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