android tutorial - declare dependencies for configurations in android | Developer android - android app development - android studio - android app developement



Dependencies can be added for specific configuration like test/androidTest

androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
testCompile 'junit:junit:3.8.1'
click below button to copy code from our android learning website - android tutorial - team

Alternatively create your own configuration

configurations {
    myconfig
}
click below button to copy code from our android learning website - android tutorial - team
configurations {
    myconfig
}
click below button to copy code from our android learning website - android tutorial - team

And then download dependency for this config

myconfig group: 'com.mycompany', name: 'my_artifact', version: '1.0.0'
click below button to copy code from our android learning website - android tutorial - team

Related Searches to declare dependencies for configurations in android