Ryan Heitner
Ryan Heitner

Reputation: 13652

Unable to create Android Resource Directory for flavor in Android Studio

I have a project with two flavors and decided to add a third. However with the third flavor I am experiencing some problems.

My res file is not defined as an Android resource file, and consequently my layout xml files are not rendered.

You can see the file res file for flavor len does not have the yellow mark on the bottom right like the one for en.

enter image description here

When I right click on the en-res folder I see the create resource file, however I do not see this for my len-res folder.

enter image description here

enter image description here

Is there a way I can tell studio my folder is a resource folder ?

I am running 0.3.7 on Windows

productFlavors {
    de {
        packageName 'org.rh.ellierides.de'
    }
    en {
        packageName 'org.rh.ellierides'

    }
    len {
        packageName 'org.rh.ellierides.en.lite'
    }

Upvotes: 4

Views: 3075

Answers (1)

Ryan Heitner
Ryan Heitner

Reputation: 13652

I resolved this by changing the build variant to the specific one which was causing me problems in my case len

Once I built this flavor the project self corrected.

Upvotes: 2

Related Questions