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. Using the firebase in assistant tab



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










share|improve this question



























    up vote
    0
    down vote

    favorite












    I wanted to monetize my app using admob. Using the firebase in assistant tab



    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










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I wanted to monetize my app using admob. Using the firebase in assistant tab



      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










      share|improve this question















      I wanted to monetize my app using admob. Using the firebase in assistant tab



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 6:32

























      asked Nov 11 at 5:15









      Anshul Sharma

      134




      134






















          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'





          share|improve this answer




















          • 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

















          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'






          share|improve this answer






















          • 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










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          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

























          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'





          share|improve this answer




















          • 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














          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'





          share|improve this answer




















          • 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












          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'





          share|improve this answer












          change line :



           implementation 'com.google.firebase:firebase-ads:15.0.1:15.0.0'


          to



           implementation 'com.google.firebase:firebase-ads:15.0.1'






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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















          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












          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'






          share|improve this answer






















          • 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














          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'






          share|improve this answer






















          • 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












          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'






          share|improve this answer














          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'







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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
















          • 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

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          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





















































          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







          這個網誌中的熱門文章

          What does pagestruct do in Eviews?

          Dutch intervention in Lombok and Karangasem

          Channel Islands