It doesn't like how you've set up the exclude
statements for your dependencies. If you follow the example in the guide more closely, it should work.
For example, instead of:
compile('com.google.api-client:google-api-client:1.17.0-rc') {
// Exclude artifacts that the Android SDK/Runtime provides.
exclude('xpp3:xpp3')
exclude('org.apache.httpcomponents:httpclient')
exclude('junit:junit')
exclude('com.google.android:android')
}
use this:
compile('com.google.api-client:google-api-client:1.17.0-rc') {
// Exclude artifacts that the Android SDK/Runtime provides.
exclude(group: 'xpp3', module: 'xpp3')
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
exclude(group: 'junit', module: 'junit')
exclude(group: 'com.google.android', module: 'android')
}
It's fine to use the condensed format in the initial compile
coordinates.