在我更改了我的應用程式的圖示并運行它之后,/app/src/debug 檔案夾被創建了。
我在 git 中需要它嗎?
如果沒有,為什么 gitignore 沒有呢?
uj5u.com熱心網友回復:
git 中不需要 build 檔案夾。你可以洗掉它。
此外,不要忘記更新您的 gitignore 檔案。
- 在 .gitignore 檔案中進行更改。
- 運行 git rm -r --cached 。命令。
- 運行 git 添加。命令
- git commit -m "Commit message" 或只是 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
如果相關變體中有內容,則需要使用除錯檔案夾。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/534318.html
標籤:安卓混帐安卓工作室
