title: Compilation error when adding dependency: com.google.firebase:firebase-core
body: <p>I'm trying to modify the Cordova plugin <a href="https://github.com/phonegap/phonegap-plugin-push" rel="nofollow noreferrer">Phonegap Plugin Push plugin</a> to include <code>FirebaseAnalytics</code>. To do so, I added <code>firebase-core</code> as a dependency in plugin.xml:</p>
  
  <pre><code>&lt;framework src="com.google.firebase:firebase-core:16.0.8"/&gt;
  </code></pre>
  
  <p>If I add this plugin to a new project (no other plugins installed) and try to compile, I get the error:</p>
  
  <pre><code>Failed to notify dependency resolution listener.
  &gt; The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.2.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
  &gt; The library com.google.firebase:firebase-iid is being requested by various other libraries at [[16.0.0,16.0.0]], but resolves to 17.0.3. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
  </code></pre>
  
  <p>I don't know where does this conflict come from. I tried to search for <code>play-services-basement</code> and <code>firebase-iid</code> in the project, but there were no matches. I didn't see them in the <code>gradle</code> dependency list either.</p>
  
  <p>How can I fix this? What's the best way to find where does this conflict come from?</p>