多个dex文件定义了Landroid / arch / core / util / Function firebase

时间:2018-08-03 10:34:20

标签: android firebase

  

此错误多个dex文件定义了Landroid / arch / core / util / Function;   如果我添加实现'com.firebaseui:firebase-ui-database:4.1.0'

this is image 1

this is image 2

this is image 3

1 个答案:

答案 0 :(得分:1)

要解决此问题,请在build.gradle文件(项目)中更改以下代码行:

classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:4.0.1'

classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.2'