无法确定任务':app:compileReleaseJavaWithJavac'的依赖关系

时间:2020-09-03 12:23:18

标签: android firebase gradle onesignal

当尝试使用 onesignal 在现有项目中实现Firebase时,出现此错误。我也禁用了gradle中的版本检查功能,但此问题无法解决。我已经更新了Firebase和Google Play服务的版本。

AILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
> In project 'library' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1
  0.2.1, 16.0.99]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
  
  Dependency failing: com.onesignal:OneSignal:3.15.3 -> com.google.android.gms:play-services-location@[10.2.1, 16.0.99], b
  ut play-services-location version was 12.0.1.
  
  The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
  ifact with the issue.
  -- Project 'library' depends on project 'app' which depends onto com.google.android.gms:play-services-location@{strictly
   12.0.1}
  -- Project 'library' depends on project 'app' which depends onto com.google.android.gms:play-services-fitness@{strictly 
  12.0.1}
  -- Project 'library' depends on project 'app' which depends onto com.zoho.salesiq:mobilisten@2.0
  -- Project 'library' depends on project 'app' which depends onto com.onesignal:OneSignal@3.15.3
  -- Project 'library' depends on project 'app' which depends onto com.google.android.gms:play-services-awareness@{strictl
  y 12.0.1}
  -- Project 'library' depends on project 'app' which depends onto com.onesignal:OneSignal@{strictly 3.15.3}
  -- Project 'library' depends on project 'app' which depends onto com.google.android.gms:play-services@12.0.1
  -- Project 'library' depends on project 'app' which depends onto com.zoho.salesiq:mobilisten-chat@{strictly 2.0}
  -- Project 'library' depends on project 'app' which depends onto com.google.android.gms:play-services@{strictly 12.0.1}
  -- Project 'library' depends on project 'app' which depends onto com.zoho.salesiq:mobilisten@{strictly 2.0}
  
  For extended debugging info execute Gradle from the command line with ./gradlew --info :library:assembleDebug to see the
   dependency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at http
  s://github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to yo
  ur build.gradle file.

0 个答案:

没有答案