android - Eclipse Android 和 gitignore

标签 android eclipse git

我可以安全地忽略哪些文件/文件夹以包含在 git 中?

我复制了一个好的项目,删除了它的 gen 和 bin 文件夹并尝试运行该应用程序。 Android 启动窗口显示:“您的项目包含错误,请在运行应用程序之前修复它们。Package Explorer 中项目左侧的图标上有一个红色 X。虽然 gen 文件夹不存在Windows 资源管理器,它在包资源管理器中。

最佳答案

有些文件类型可以忽略

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.classpath
.project

# Proguard folder generated by Eclipse
proguard/

# Intellij project files
*.iml
*.ipr
*.iws
.idea/

来自 Gitignore on github

关于android - Eclipse Android 和 gitignore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3325736/

相关文章:

java - 使用 TCP 在 Java(Android 客户端)和 C(PC 服务器 - Linux)之间传输文件

eclipse - Glassfish 3 无法启动,因为找不到 bootstrap jar

java - 在 Eclipse 控制台中没有输出的 Apache 500 错误

android - 通过方法 channel flutter 传递自定义对象

android - 网页未显示在 android apk 上

java - Eclipse Juno 的内容辅助显示所有内容两次

java - 推送我的应用程序时 Openshift 出现错误

git - 在使用 Git 或 SSH 复制/远程登录等时,我们应该重复使用相同的 SSH key 还是每次都创建新 key ?

git - 如何安全地更改github账户名?

android - Facebook android 应用程序错误 : Invalid key hash