android - Multiple errors during the gradle sync when I try to add Google Service library to the dependencies -


i want add app ads using admob, site says need add google services dependencies use functionality. android studio went file->project structure->app->dependencies, clicked on "+" button e searched "play-services". found "com.google.android.gms:play-services:9.4.0" added dependencies. during gradle sync android studio sends errors , stops gradle sync.

this log form sync: http://pastebin.com/zpn4rucm

here data might useful:

  • compile sdk version: api 17
  • build tools version: 23.0.1
  • android studio 2.1.2

this main gradle file:

// top-level build file can add configuration options common sub-projects/modules. buildscript {     dependencies {             classpath 'com.android.tools.build:gradle:2.1.2'     } }  allprojects {     repositories {         jcenter()     } } 

and app gradle file:

apply plugin: 'com.android.application'  android {     compilesdkversion 'google inc.:google apis:17'     buildtoolsversion '23.0.1'      defaultconfig {         applicationid "com.serpenssolida.glowdodger"         minsdkversion 10         targetsdkversion 17     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'             }        }    }     repositories {        mavencentral()    }     dependencies {        compile 'com.android.support:support-v4:17.0.0'        compile files('libs/processing-core.jar')        compile project(':facebook')        compile 'com.google.android.gms:play-services:9.4.0'    } 

how can rid of errors?

change app gradle file below , try again:

apply plugin: 'com.android.application'  android {     compilesdkversion '24'     buildtoolsversion '24.0.2'     ... } 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -