Android - Getting multiple errors while building the project

前端 未结 2 1537
广开言路
广开言路 2021-01-24 09:32

I am getting these errors while building the project

  1. Failed to resolve: firebase-core
  2. Failed to resolve: multidex
  3. Failed to resolve: play-service
2条回答
  •  时光说笑
    2021-01-24 10:11

    Apparently, jcenter has started mirroring Google's repo. Try moving google() before jcenter() in the allprojects section of your project's build.gradle (like this):

    repositories {
        google()
        jcenter()
        maven { url "https://maven.google.com" }
        maven { url "https://jitpack.io" }
        maven { url  "https://adcolony.bintray.com/AdColony" }
        maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
    }
    

提交回复
热议问题