双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

Program type already present: android.support.v4.app.BackStackRecord$Op

Dama_feng_ Dama_feng_ 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
运行代码的时候,出现了这个问题,build报错
Program type already present: android.support.v4.app.BackStackRecord$Op
Message{kind=ERROR, text=Program type already present: android.support.v4.app.BackStackRecord$Op, sources=[Unknown source file], tool name=Optional.of(D8)}

虽然不知道具体意思,感觉就是v4包冲突,可是我不会找在哪冲突的
在网上疯狂搜解决办法,没有一个奏效
给各位大佬呈上我的build.gradle
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.asus.bs_im"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//use legacy for android 6.0
useLibrary 'org.apache.http.legacy'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}
}

dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
api 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.code.gson:gson:2.8.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
api project(':easeui')
configurations { all*.exclude group: 'com.android.support', module: 'support-v13' }

}

整了两三个小时了,各种办法都试过了,希望有大佬来拯救一下我这个辣鸡
...全文
评论 8
收藏 已收藏
分享
返回顶部
Dama_feng_
Android 80,489 成员 91,371 内容