Library project flavors support

4 views
Skip to first unread message

Alexey Toropov

unread,
Jul 28, 2014, 9:41:55 AM7/28/14
to gradle-android-p...@googlegroups.com
I have a project that includes main project with library project as dependency to it:

dependencies {
    compile project
(':Core')
}


"Core" project need to have division by flavors, but when I add these lines to build.gradle file:

productFlavors {
    production
{
        buildConfigField
"com.evoz.core.BuildType", "flavor", "com.evoz.core.BuildType.PRODUCTION"
   
}
    staging
{
        buildConfigField
"com.evoz.core.BuildType", "flavor", "com.evoz.core.BuildType.STAGING"
   
}
}

Project compilation brakes saying that it doesn't find resources and classes of library project.


I'm using android gradle plugin 0.12.+, Android Studio 0.8.4 and 19.1.0 build tools version.

If library project flavors support is not working currently, then when it will?

Thanks,
Alexey.
Reply all
Reply to author
Forward
0 new messages