Android Studio Android运行后,我的git中是否需要/app/src/debug文件夹?

hk8txs48  于 2022-11-16  发布在  Android
关注(0)|答案(1)|浏览(164)

在我更改了我的应用程序的图标并运行它后,/app/src/debug文件夹被创建。
我需要在git中使用它吗?
如果没有,为什么gitignore没有呢?

6pp0gazn

6pp0gazn1#

在git中不需要build文件夹,你可以删除它。
另外,不要忘记更新gitignore文件。

  • 在.gitignore文件中进行更改
  • 运行git rm -r --cached .命令。
  • 运行git add .命令
  • git commit -m“提交消息”或者只是git commit或者继续工作。

示例gitignore - android文件。

# Gradle files
.gradle/
build/

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

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof

如果相关变量中有内容,则需要使用debug文件夹。

相关问题