gradle-retrolambda: Retrolambda plugin 3.3.0 doesn't strip calls to addSuppressed when using try-with-resources
lint produces a warning about this issue (and I’ve checked generated files as well - 3.2.5 ok, 3.3.0 broken)
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'me.tatarka:gradle-retrolambda:3.3.0'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
minSdkVersion 15
3.2.5 with retrolamda 2.3.0 works ok, too
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 21 (2 by maintainers)
@benj56 try placing lint.xml in the same folder as build.gradle.
@zergtmn I get 2 lint warnings with clean lint.xml - for both try with resources and addSuppressed. Try updating your build tools.