Eclipse Android和gitignore [英] Eclipse Android and gitignore

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

问题描述



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

解决方案

有忽略的文件类型

 #构建应用程序文件
* .apk
* .ap_

dex VM
# * .dex

#Java类文件
* .class

#生成的文件
bin /
gen /

#本地配置文件(sdk路径等)
local.properties

#Eclipse项目文件
.classpath
.project

#Eclipse生成的Proguard文件夹
proguard /

#Intellij项目文件
* .iml
* .ipr
* .iws
.idea /

gitign上的Gitignore


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

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.

解决方案

There are file types to ignore

# 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/

From Gitignore on github

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

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