Android Studios - Dependencies error for admob

701 views
Skip to first unread message

Joaquim Mussassa

unread,
Aug 16, 2018, 10:20:29 AM8/16/18
to Google Mobile Ads SDK Developers
Hello
I am trying to implement admob and on the file build.gradle (module: app) I get an error:

implementation-error-dependencies.jpg













The full code is:
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.urbannet.user2.receitassaudaveis"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

mobileadssdk-a...@google.com

unread,
Aug 16, 2018, 2:38:38 PM8/16/18
to Joaquim Mussassa, Google Mobile Ads SDK Developers
Hi Joaquim,

Thanks for contacting us. This is an Android Studio related query and not something related to our Mobile Ads SDK. I would suggest that you use StackOverflow for future reference. You need to install the Google Play Services repository and you can either click on Install Repository and Sync Project option or open the Android SDK Manager and install the required dependencies from there.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/95a92351-92c5-414d-aa69-2b20d6388e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MD KAMRUL HASAN

unread,
Mar 27, 2019, 5:48:04 AM3/27/19
to Google Mobile Ads SDK Developers
Simple Just write the following additional 3 line codes into your file. The problem will be solved.


implementation 'com.google.android.gms:play-services-ads:17.2.0'


implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'



Devendra Kumar

unread,
Dec 31, 2019, 6:58:31 AM12/31/19
to Google Mobile Ads SDK Developers
hello, I have the same issues, how I resolve it please response me as soon as possible....

Devendra Kumar

unread,
Dec 31, 2019, 6:59:50 AM12/31/19
to Google Mobile Ads SDK Developers
Hello, karul I do same as your instruction but i got the same issues

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 2, 2020, 2:10:22 AM1/2/20
to debuku...@gmail.com, google-adm...@googlegroups.com

Hi Devendra,

 

Thank you for reaching out to us.

 

Kindly provide details of your concern in a new thread instead of here, so that we can assist you better.

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5001UOFYiS:ref
Reply all
Reply to author
Forward
0 new messages