gpt4 book ai didi

java - 添加库后无法合并dex错误

转载 作者:行者123 更新时间:2023-12-02 06:13:54 24 4
gpt4 key购买 nike

我一直在尝试添加设计库,但每次执行此操作时都会出现无法合并 dex 错误

我已经尝试使用不同版本的 SDK 和其他设计版本,但它似乎不起作用

这是错误的图像: enter image description here

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'

}

对如此困惑的依赖关系感到抱歉,但我一直在尝试一切方法来修复此问题,但什么也没做,因为我需要设计库

最佳答案

我遇到了同样的问题,我发现了 docs这对我有用。

app/build.gradle添加一些配置:

android {
defaultConfig {
...
multiDexEnabled true
}
...
}

dependencies {
compile 'com.android.support:multidex:1.0.3'
}

关于java - 添加库后无法合并dex错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55884027/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com