gpt4 book ai didi

android - 使用github在Mac和Windows上开发单个android应用

转载 作者:行者123 更新时间:2023-12-03 06:34:04 25 4
gpt4 key购买 nike

在两个OS上都可以开发单个Android应用程序吗?

如果我使用Github,我想在家中Mac上和工作Windows上使用Android Studio开发Android应用程序,我会遇到任何问题吗?

最佳答案

在同一个项目上使用不同的操作系统没有问题。

您必须配置正确的.gitignore文件,以避免带有本地路径和引用的文件。

这是一个例子:

#Android
gen/
build/
local.properties

# suggestion: also ignore libs/*.properties files for old eclipse project
# can't be added here because multiple libs/ directory can be around in different paths

# Idea or Android Studio
# According to this
# see http://intellij-support.jetbrains.com/entries/23393067 and http://devnet.jetbrains.com/docs/DOC-1186
# I shouldn't ignore most of this stuff.. but looking at the content I see environment stuffs in it.
*.iws
*.iml
*.ipr
.idea
.gradle/
out

# Eclipse
.project
.classpath
.settings
# Eclipse NDK
.cproject

# Mac
.DS_Store

# Generic
*~
.swp

关于android - 使用github在Mac和Windows上开发单个android应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33376161/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com