Eclipse的Andr​​oid和gitignore [英] Eclipse Android and gitignore

查看:161
本文介绍了Eclipse的Andr​​oid和gitignore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以放心地忽略哪些文件/文件夹包含使用Git?

What files/folders can I safely ignore for inclusion with git?

我复制一个好的项目,取消了根和bin文件夹,并试图运行应用程序。 Android的发射窗口说:你的项目包含错误(S),请运行应用程序之前解决这些问题。还有就是图标在Package Explorer中的项目的左侧一个红色的X,而根文件夹中不存在Windows资源管理器,它在Package Explorer中。

I copied a good project, removed its gen and bin folders and tried to run the app. The Android Launch window says, "Your project contains error(s), please fix them before running your application. There is a red X on the icon to the left of the project in the Package Explorer. While the gen folder does not exist in Windows Explorer, it does in Package Explorer.

推荐答案

有文件类型来忽略

# 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在github

这篇关于Eclipse的Andr​​oid和gitignore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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