Mistake: no flavor related to taste size 'xxx'

I have the following application level build.gradle file:

flavorDimensions "store", "features"

productFlavors {
    amazon {
        dimension "store"
        ...
    }
    play {
        dimension "store"
        ...
    }
    none {
        dimension "features"
        ...
    }
    myAwesomeFeature {
        dimension "features"
        ...
    }
    anotherAwesomeFeature {
        dimension "features"
        ...
    }
    all {
        dimension "features"
        ...
    }
}

I get an error when I try to synchronize project files with the inscription "Error: no flavor associated with the taste repository." I used to use flavorDimension in productFlavors, but there were compiler warnings that were deprecated for "dimension" ... using (or both) it throws an error.

I obviously have 2 flavors with a repository of measures. I looked through the docs and sample code and can't figure out what's wrong. I tried updating the gradle plugin from 1.2.0 to 1.2.3, and I tried updating my version of gradle from 2.2.1 to 2.4.

? . .

+4
1

, - " ", "" ( , , ) . noFeatures allFeatures, .

, ... , . AFAIK, Java Groovy.

, .

+3

All Articles