Infeasible
Status Update
Comments
bo...@google.com <bo...@google.com>
ba...@google.com <ba...@google.com> #2
This problem isn't related to Android Lint directly, since the issue is coming from the kotlin-plugin itself. I'll take another look to determine what could cause it(my first guess is
package com.example.myapplication;
import android.util.Log;
import timber.log.Timber;
public class Reproduce {
void method() {
Log.wtf("tag", "msg");
Timber.plant(new Timber.DebugTree());
}
}
gm...@gmail.com <gm...@gmail.com> #3
Thanks for clarification. I'm not sure it is caused by the issue you mentioned though: they talk about sort of circular dependency there, but Timber does not depend on my project.
ba...@google.com <ba...@google.com> #4
Timber.plant
get resolved to a binary .class while new Timber.DebugTree
- to the sources, even if these 2 methods are in the same file. So it may be caused by the plugin itself or a way Android Studio attaches .aar libraries.
gm...@gmail.com <gm...@gmail.com> #5
hu...@gmail.com <hu...@gmail.com> #6
Since we not yet known what is the exact issue, we can try this workaround solution: https://stackoverflow.com/a/75388643/7257373
Description
DESCRIBE THE ISSUE IN DETAIL:
We're using Timber as a logger.
Calling
from Java is highlighted with
But it should resolve: there is
@JvmStatic fun plant(tree: Tree)
, andopen class DebugTree : Tree()
This code compiles and runs fine, so it seems to be a false positive in Lint.
The equivalent Kotlin code is not highlighted.
According to this comment , this is a regression in Bumblebee.
STEPS TO REPRODUCE:
implementation "com.jakewharton.timber:timber:5.0.1"
tobuild.gradle
Timber.plant(new Timber.DebugTree());
to any Java codeAndroid Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 1, 2022
Runtime version: 11.0.11+0-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-97-generic
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), zielu.gittoolbox (203.8.5)
Current Desktop: X-Cinnamon