所以,我有一个正在使用的android项目
implementation 'com.google.protobuf:protobuf-lite:3.0.1'
但随后我添加了Facebook登录名。导致重复的类异常
Duplicate class com.google.protobuf.AbstractMessageLite found in modules jetified-protobuf-javalite-3.12.0.jar (com.google.protobuf:protobuf-javalite:3.12.0) and jetified-protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
所以我将以上行更改为
implementation 'com.google.protobuf:protobuf-javalite:3.12.0'
并添加
generateProtoTasks {
all().each { task ->
//...
task.builtins {
java {
option "lite"
}
}
}
}
现在当我尝试构建项目时
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
总有办法解决吗?