Program type already present: android.support.v4.app.BackStackRecord$Op
运行代码的时候,出现了这个问题,build报错
虽然不知道具体意思,感觉就是v4包冲突,可是我不会找在哪冲突的
在网上疯狂搜解决办法,没有一个奏效
给各位大佬呈上我的build.gradle
整了两三个小时了,各种办法都试过了,希望有大佬来拯救一下我这个辣鸡
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' }
}整了两三个小时了,各种办法都试过了,希望有大佬来拯救一下我这个辣鸡
...全文
相关推荐
android-support-v4 最新版
android-support-v4 最新版本v4,可以解决Android6.0以上系统权限问题,内部有requestPermissions 等新的方法
android-support-v7支持AppCompatActivity并附带一个v4包
android-support-v7支持AppCompatActivity并附带一个v4包
Android support v7 lib包 (含V4否则报错)
v7 lib包 (包含V4包,否则可能不好用) 拷贝的时候,一起拷贝到lib目录下面,否则可能报 The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.
android-support-v4
android-support-v4、android-support-v4-25.3.1两个版本的v4包
android-support-v7 项目lib包
android-support-v7工具项目lib,内含的v4。



