gpt4 book ai didi

android - ButterKnife 编译错误 : error duplicate class

转载 作者:搜寻专家 更新时间:2023-11-01 08:47:19 27 4
gpt4 key购买 nike

我在构建项目时遇到此错误:

错误:类重复:class_name$$ViewInjector

enter image description here

这是我的 build.gradle 文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"

defaultConfig {
applicationId "com.stel.order"
minSdkVersion 9
targetSdkVersion 19
}

buildTypes {
release {
runProguard true
proguardFiles 'proguard-project.txt'
}
}
}

dependencies {
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.jakewharton:butterknife:6.0.0'
...
}

如果我清理项目,它构建时没有错误,但是当我运行项目时,我得到这个错误。

最佳答案

当我从 Eclipse 迁移时,它也发生在我身上。您只需手动删除项目中的文件 path.OuterClass$$ViewInjector

关于android - ButterKnife 编译错误 : error duplicate class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26904536/

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