问题描述
当尝试使用 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:[email protected]
-- Project 'library' depends on project 'app' which depends onto com.onesignal:Ones[email protected]
-- 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:[email protected]
-- 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.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)