Android 项目编译失败

Reference
  1. Program type already present: com.google.gson.FieldAttributes

添加

1
2
3
configurations{
all*.exclude group: 'com.google.code.gson'
}
  1. TaskExecutionException: Execution failed for task ':app:transformJackWithJackForDebug’最权威有效的解决方案

使用了compileOptions 中添加incremental false