Build Failed(Android) when Firebase plugin installed

When I install Firebase plugin my project build failed. Firebase is creating an issue in my project but I need Firebase DB. Error should be like this -

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find any version that matches[15.0.0, 16.0.0).
  Versions that do not match:
    - 1.2.0
    - 1.1.0
    - 1.0.3
    - 1.0.2
    - 1.0.1
    - + 1 more
  Required by:
      project :app >

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

3 actionable tasks: 1 executed, 2 up-to-date

Please help me to find out the solution.


Hello, @ashokInceptive I have the same problem, Do you found fix it ?

I had this issue a while ago and this forked project worked for me as a work around: