Javier P
Javier P

Reputation: 1362

Creating resource files for different build types on Android studio

So I upgraded to Android Studio 0.8.14 and I already know that I can create a new folder on my module app/src/newbuildtype and there I can create the folders java and res specific to my build type, but what I want is to create the resources from Android Studio directly. Is there a way to do this? What I want to avoid is to create folders directly with my file explorer, thanks.

Upvotes: 20

Views: 10705

Answers (1)

Javier P
Javier P

Reputation: 1362

So I found that I can create a app/debug/res folder by right-clicking on my module, selecting this options from menu New->Folder->Res Folder Res folder create Res folder creation wizard

After that you can create, let's say the values folder by right-clicking on my app module -> New->XML->Values folder and selecting my build type

Menu selection to create values folder

Build type selection

And there you have created your values folder on debug build type, that now appears like this Resource files project tree

Upvotes: 31

Related Questions