如何在两台计算机上使用的是Android Studio项目?的是、机上、两台、项目

2023-09-08 09:42:17 作者:只剩寒暄

我用两台电脑编码。我的台式电脑和笔记本电脑。我同步两台计算机的Dropbox。如何导入/每本两台计算机加载一个项目?该项目基本文件夹是每台计算机上不同。当我尝试加载/导入的是它加载的项目在其他计算机上创建了一个项目,但我有一个错误,一个错误的路径。

I use two computer for coding. My desktop pc and the notebook. I sync the two computers with dropbox. How can I import/load a project on each of this two computers? The project base folder is different on each computer. When I try to load/import a project which is created on the other computer it loads the project but I got a error with a wrong path.

摇篮Test2Project项目刷新失败:无法获取类型的模型IdeaProject使用摇篮分配http://services.gradle.org/distributions/gradle-1.6.zip\".项目目录C:\\用户\\托马斯\\ AndroidStudioProjects \\ Test2Project不存在

"Gradle "Test2Project" project refresh failed: Could not fetch model of type "IdeaProject" using Gradle distribution "http://services.gradle.org/distributions/gradle-1.6.zip". Project directory "C:\Users\thomas\AndroidStudioProjects\Test2Project" does not exist."

错误的PFAD是其他计算机上的权利PFAD。如何导入的Andr​​oid Studio项目,这样它的作品,即使另一台计算机上用不同的文件夹结构?

The wrong pfad is the right pfad on the other computer. How can I import Android Studio projects so that it works even on another computer with a different folder structure?

推荐答案

和其他人一样我也同意,使用VCS将是最好的解决方案。即使你可以尝试过滤所有的Andr​​oid工作室相关文件(如* .iml,.idea文件夹和local.properties)。我不知道,如果你能做到这一点有保管箱或如果你需要某种形式的第三软件。

Like the others i agree, that using a VCS would be the best solution. Even though you can try to filter all android studio related files (like *.iml, .idea folder and local.properties). I don't know if you can do this with dropbox or if you need some kind of 3rd software.

之后,你应该能够使两台计算机上源$ C ​​$ C没有变化更大的问题。 (您可能需要两次申报为Android Studio项目的依赖关系的变化)建立视的build.gradle文件应该努力。但同样:使用VCS是更好的方式去

After that you should be able to make source code changes on both computers without greater problems. (You may have to declare project dependencies changes for the android studio twice) Builds depending on the build.gradle files should work to. But again: using a VCS is the better way to go.