在我的项目中添加Appodeal sdk之后,我不断收到此编译错误:
程序类型已经存在: android.support.v7.util.MessageThreadUtil $ 1 $ 1消息{kind = ERROR, text =程序类型已经存在: android.support.v7.util.MessageThreadUtil $ 1 $ 1,sources = [未知来源 文件],工具名称= Optional.of(D8)}
模块化应用gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.nkdroid.videochat"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '27.0.3'
}
repositories {
maven {
url "https://jitpack.io"
}
}
repositories {
flatDir {
dirs 'libs-aar'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation "com.android.support:support-v13:26.1.0"
implementation 'com.github.Triggertrap:SeekArc:v1.1'
implementation name: 'adcolony-sdk-3.2.1', ext: 'aar'
implementation name: 'mmedia-6.4.0', ext: 'aar'
implementation name: 'mobvista_alphab', ext: 'aar'
implementation name: 'mobvista_appwall', ext: 'aar'
implementation name: 'mobvista_appwallext', ext: 'aar'
implementation name: 'mobvista_common', ext: 'aar'
implementation name: 'mobvista_interstitial', ext: 'aar'
implementation name: 'mobvista_mvdownloads', ext: 'aar'
implementation name: 'mobvista_mvjscommon', ext: 'aar'
implementation name: 'mobvista_mvnative', ext: 'aar'
implementation name: 'mobvista_nativeex', ext: 'aar'
implementation name: 'mobvista_offerwall', ext: 'aar'
implementation name: 'mobvista_playercommon', ext: 'aar'
implementation name: 'mobvista_reward', ext: 'aar'
implementation name: 'mobvista_videocommon', ext: 'aar'
implementation name: 'mobvista_videofeeds', ext: 'aar'
}
有人可以帮助我解决错误吗!
答案 0 :(得分:2)
尝试从app / libs /目录中删除 android-support-v7-recyclerview-23.1.1.jar 并重建。它与gradle构建配置中的 com.android.support:recyclerview-v7:26.1.0 冲突。