Skip to content

BuildConfig is not by default generated for all build types #8

Description

@nenick

This issue is tracked at https://code.google.com/p/android/issues/detail?id=52962

Solution is to make the main project depend on different build types ...
... setting this in the dependency project

android {
    publishNonDefault true
}

and this in the project that uses it

dependencies {
    releaseCompile project(path: ':theotherproject', configuration: 'release')
    debugCompile project(path: ':theotherproject', configuration: 'debug')
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions