安卓解析SDK安卓与facebook SDK不兼容



最新版本的android parse SDK(1.24.x(包括bolts任务,而不是引用它。在一个也使用Facebook SDK的应用程序中,这会导致重复的类:

java.lang.RuntimeException:类螺栓重复。在模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中发现AggregateException重复等级螺栓。在模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中找到AndroidExecutors重复等级螺栓。在模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中找到AndroidExecutors$1重复等级螺栓。在模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中找到了AndroidExecutors$UIThreadExecutor重复等级螺栓。BoltsExecutitors位于模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中重复等级螺栓。在模块bolts-tasks-1.24.1.jar(com.github.parse community.parse SDK Android:bolts tasks:1.24.1(和bolts-ttasks-1.4.0.jar(com.parse.bolts:bolts tasks:1.4.0(中找到BoltsExecutitors$1…

有解决方案吗?

尝试这个

implementation ("com.github.parse-community.Parse-SDK-Android:parse:1.24.1"){
exclude module:'bolts-tasks'
}

如果它不起作用,那么试试这个

implementation ("com.github.parse-community.Parse-SDK-Android:parse:1.24.1"){
exclude group:'com.github.parse-community' ,module:'bolts-tasks'
}

如果您使用的是com.facebook.write:湿壁画,则以下解决方案正在中工作

implementation ('com.facebook.fresco:fresco:2.1.0'){
exclude module:'bolts-tasks'
}
implementation "com.github.parse-community.Parse-SDK-Android:parse:1.24.1"

试试这对我来说有效

implementation "com.github.parse-community.Parse-SDK-Android:parse:1.24.1"
implementation ('com.github.parse-community:ParseFacebookUtils-Android:1.14.0'){
exclude module: 'bolts-android'
}

最新更新