I am currently seeing an error in the Lint Report of my build pipeline. A quick check did not reveal anything similar here in the issues, and Google also does not seem to have anything on this yet. I know that I am working on the bleeding edge of tool versions (check versions below), so I expect some hickups.
I am not sure whether this can even be fixed through Timber, my suspicions are more towards the new Android Gradle Plugin, but we'll see. Here is an abbreviated version of the error message, for readability please find the full message here
../../src/main/java/.../Helper.java: The lint detector
timber.lint.WrongTimberUsageDetector
called context.getMainProject() during module analysis.
[...]
Contact the vendor of the lint issue to get it fixed/updated
[...]
Issue Vendors:
Identifier: jetified-timber-4.7.1
Call stack: Context.getMainProject(Context.kt:117)
←WrongTimberUsageDetector.visitMethod(WrongTimberUsageDetector.java:80)
[...]
How to reproduce
Add Timber and Android Gradle Build Tools 7.0 to project
Add Timber.tag("myTag").d("FooBar"); to any class
full build on CLI via gradle assembleRelease
I am still working on checking which things to roll back for the message to go away. More details to follow here if I find them
Description
I am currently seeing an error in the Lint Report of my build pipeline. A quick check did not reveal anything similar here in the issues, and Google also does not seem to have anything on this yet. I know that I am working on the bleeding edge of tool versions (check versions below), so I expect some hickups.
I am not sure whether this can even be fixed through Timber, my suspicions are more towards the new Android Gradle Plugin, but we'll see. Here is an abbreviated version of the error message, for readability please find the full message here
How to reproduce
Timber.tag("myTag").d("FooBar");
to any classgradle assembleRelease
I am still working on checking which things to roll back for the message to go away. More details to follow here if I find them
Versions
Timber: 4.7.1 Android Tools Build Gradle: 7.0.0-alpha14 Gradle: 7.0 CompileSdk: 30 TargetSdk: 30 Java Version (source_compatibility): 1.8