android tutorial - Declare dependencies for buildtypes | Developer android - android app development - android studio - android app developement



Dependencies can be added for specific Build types:

android {
    ...   
    buildTypes {
        release {
            //...
        }

        debug {
            //....
        }
    }
}

dependencies {
    debugCompile 'com.android.support:appcompat-v7:24.1.1'
    releaseCompile 'com.google.firebase:firebase-crash:9.4.0'            
} 
click below button to copy code from our android learning website - android tutorial - team

Related Searches to Declare dependencies for build types