Failed to resolve: firebase-ads:15.0.1:15.0.0
up vote
0
down vote
favorite
I wanted to monetize my app using admob.
When i used the admob option available in firebase it asked me to add the following dependency 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
but after the gradle build it gave me this error Failed to resolve: firebase-ads-15.0.0
so i used 'com.google.firebase:firebase-ads:12.0.1'
which works great but with this one i can't see the ads. These are my dependencies :
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.1.0'
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'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'com.google.android.gms:play-services:12.0.1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-core:12.0.1'
//implementation 'com.google.firebase:firebase-ads:12.0.1'
//implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
}
This is my project level gradle file
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.0'
classpath 'com.google.gms:google-services:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android firebase admob
add a comment |
up vote
0
down vote
favorite
I wanted to monetize my app using admob.
When i used the admob option available in firebase it asked me to add the following dependency 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
but after the gradle build it gave me this error Failed to resolve: firebase-ads-15.0.0
so i used 'com.google.firebase:firebase-ads:12.0.1'
which works great but with this one i can't see the ads. These are my dependencies :
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.1.0'
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'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'com.google.android.gms:play-services:12.0.1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-core:12.0.1'
//implementation 'com.google.firebase:firebase-ads:12.0.1'
//implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
}
This is my project level gradle file
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.0'
classpath 'com.google.gms:google-services:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android firebase admob
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I wanted to monetize my app using admob.
When i used the admob option available in firebase it asked me to add the following dependency 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
but after the gradle build it gave me this error Failed to resolve: firebase-ads-15.0.0
so i used 'com.google.firebase:firebase-ads:12.0.1'
which works great but with this one i can't see the ads. These are my dependencies :
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.1.0'
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'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'com.google.android.gms:play-services:12.0.1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-core:12.0.1'
//implementation 'com.google.firebase:firebase-ads:12.0.1'
//implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
}
This is my project level gradle file
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.0'
classpath 'com.google.gms:google-services:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android firebase admob
I wanted to monetize my app using admob.
When i used the admob option available in firebase it asked me to add the following dependency 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
but after the gradle build it gave me this error Failed to resolve: firebase-ads-15.0.0
so i used 'com.google.firebase:firebase-ads:12.0.1'
which works great but with this one i can't see the ads. These are my dependencies :
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.1.0'
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'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'com.google.android.gms:play-services:12.0.1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-core:12.0.1'
//implementation 'com.google.firebase:firebase-ads:12.0.1'
//implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
}
This is my project level gradle file
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.0'
classpath 'com.google.gms:google-services:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android firebase admob
android firebase admob
edited Nov 11 at 6:32
asked Nov 11 at 5:15
Anshul Sharma
134
134
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
change line :
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
to
implementation 'com.google.firebase:firebase-ads:15.0.1'
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface fromcom.google.android.gms.fitness.request.zzc
.
– Anshul Sharma
Nov 11 at 5:32
add a comment |
up vote
0
down vote
Firebase core and ads compile version should same
Try this version 16.0.4
It looks like this :
implementation com.google.firebase:firebase-core:16.0.4
implementation 'com.google.firebase:firebase-ads:16.0.4'
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
|
show 4 more comments
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
change line :
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
to
implementation 'com.google.firebase:firebase-ads:15.0.1'
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface fromcom.google.android.gms.fitness.request.zzc
.
– Anshul Sharma
Nov 11 at 5:32
add a comment |
up vote
0
down vote
change line :
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
to
implementation 'com.google.firebase:firebase-ads:15.0.1'
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface fromcom.google.android.gms.fitness.request.zzc
.
– Anshul Sharma
Nov 11 at 5:32
add a comment |
up vote
0
down vote
up vote
0
down vote
change line :
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
to
implementation 'com.google.firebase:firebase-ads:15.0.1'
change line :
implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'
to
implementation 'com.google.firebase:firebase-ads:15.0.1'
answered Nov 11 at 5:24
jay shah
714
714
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface fromcom.google.android.gms.fitness.request.zzc
.
– Anshul Sharma
Nov 11 at 5:32
add a comment |
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface fromcom.google.android.gms.fitness.request.zzc
.
– Anshul Sharma
Nov 11 at 5:32
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface from
com.google.android.gms.fitness.request.zzc
.– Anshul Sharma
Nov 11 at 5:32
Error: Type com.google.android.gms.common.api.internal.zzcl is referenced as an interface from
com.google.android.gms.fitness.request.zzc
.– Anshul Sharma
Nov 11 at 5:32
add a comment |
up vote
0
down vote
Firebase core and ads compile version should same
Try this version 16.0.4
It looks like this :
implementation com.google.firebase:firebase-core:16.0.4
implementation 'com.google.firebase:firebase-ads:16.0.4'
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
|
show 4 more comments
up vote
0
down vote
Firebase core and ads compile version should same
Try this version 16.0.4
It looks like this :
implementation com.google.firebase:firebase-core:16.0.4
implementation 'com.google.firebase:firebase-ads:16.0.4'
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
|
show 4 more comments
up vote
0
down vote
up vote
0
down vote
Firebase core and ads compile version should same
Try this version 16.0.4
It looks like this :
implementation com.google.firebase:firebase-core:16.0.4
implementation 'com.google.firebase:firebase-ads:16.0.4'
Firebase core and ads compile version should same
Try this version 16.0.4
It looks like this :
implementation com.google.firebase:firebase-core:16.0.4
implementation 'com.google.firebase:firebase-ads:16.0.4'
edited Nov 11 at 5:33
answered Nov 11 at 5:22
Sniffer
6321721
6321721
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
|
show 4 more comments
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
I have mentioned it that this fix doesn't work as ads don't display
– Anshul Sharma
Nov 11 at 5:23
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
@AnshulSharma Check on another device also
– Sniffer
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
the add admob dependency in firebase (screenshot) gets disabled when the version is changed to 12.0.1
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
tried on emulator and 2 other devices
– Anshul Sharma
Nov 11 at 5:25
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
Don't check on emulator, if you publish an on PlayStore then its take a time to visible ads on real devices
– Sniffer
Nov 11 at 5:28
|
show 4 more comments
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246035%2ffailed-to-resolve-firebase-ads15-0-115-0-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown