我一直在尝试添加设计库,但是每次我这样做都会出现无法合并dex错误的情况
我已经尝试使用不同版本的SDK和其他设计版本,但似乎无法正常工作
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.0.1'
compile 'com.android.support:design:26.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.2'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:recyclerview-v7:26.0.1'
implementation 'id.zelory:compressor:2.0.0'
implementation 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.github.javiersantos:BottomDialogs:1.2.1'
compile 'com.github.mancj:SlideUp-Android:1.0-beta'
compile 'com.github.zcweng:switch-button:0.0.3@aar'
compile 'com.firebaseui:firebase-ui-database:0.4.1'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
}
很抱歉出现这种混乱的依赖关系,但我一直在尽一切努力来解决此问题,但是什么也没做,因为我需要设计库
答案 0 :(得分:0)
我遇到了同样的问题,并且发现了docs对我有用。
向 app / build.gradle添加一些配置:
android {
defaultConfig {
...
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}