简体   繁体   中英

Can I add my folder to the structure created by Android Studio 3.3.1?

I created a project in Android Studio 3.3.1, and enable the Github on the project.

The structure of the project created by Android Studio 3.3.1 with Github is just like Image 1.

  1. Can I add my folder and files in the structure ? just like Image 2.

  2. Can the project work well after I add my folder and files?

  3. Can the Github of the project work well after I add my folder and files?

Image 1

在此处输入图片说明

Image 2

在此处输入图片说明

The general rule of thumb is to put your code and other directory or files in app .

But yes sure you can add it to your project. It won't change your project behaviour or Github which are only file containers. Everything will work just fine !

For your next step, here is the basic .gitignore content I use for my Android projects:

# - Android Studio (IntelliJ IDEA)
.idea/
*.iml

# - Gradle
.gradle

# - Android
build/
local.properties
captures
.externalNativeBuild

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM