Can't integrate AdMob in my app (Android Studio) -
Can't integrate AdMob in my app (Android Studio) -
i need implement admob in project, first wanted set google play services did on official site: -download latest (4.4.52) google play services in sdk manager -in build.gradle in dependencies added
compile 'com.google.android.gms:play-services:4.4.52'
got error when sync project:
error:a problem occurred configuring project ':app'.
could not resolve dependencies configuration ':app:_debugcompile'. not find com.google.android.gms:play-services:4.4.52. required by: myapplication:app:unspecified
please, help
please check build.gradle , create sure mavencentral reposority included. file should this:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } } apply plugin: 'android' repositories { mavencentral() } android { compilesdkversion 19 buildtoolsversion "19.1" defaultconfig { minsdkversion 15 targetsdkversion 19 versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:support-v4:19.1.+' compile 'com.google.android.gms:play-services:4.4.52' }
android admob build.gradle
Comments
Post a Comment