Git Product home page Git Product logo

Comments (10)

alexanderankin avatar alexanderankin commented on August 16, 2024 3

this_is_fine.jpg

// noinspection DataFlowIssue
Timber.plant((Timber.Tree) (Object) new Timber.DebugTree());

from timber.

cleanriceking avatar cleanriceking commented on August 16, 2024 1

This issue occurs since 5.0.0. No fixing in 5.0.1.

For Java version, we have to use 4.7.1.

#458 #459 https://stackoverflow.com/questions/70870740/cannot-resolve-method-planttimber-log-timber-debugtree

If this is unsolvable, please add remarks in README.me for new users to use it with Java code.

https://stackoverflow.com/questions/70870740/cannot-resolve-method-planttimber-log-timber-debugtree/75388643#75388643

from timber.

CristianRobles12 avatar CristianRobles12 commented on August 16, 2024

Is this library even updated anymore?

from timber.

cyfung1031 avatar cyfung1031 commented on August 16, 2024

This issue occurs since 5.0.0. No fixing in 5.0.1.
For Java version, we have to use 4.7.1.
#458 #459 https://stackoverflow.com/questions/70870740/cannot-resolve-method-planttimber-log-timber-debugtree
If this is unsolvable, please add remarks in README.me for new users to use it with Java code.

https://stackoverflow.com/questions/70870740/cannot-resolve-method-planttimber-log-timber-debugtree/75388643#75388643

This shit is not Java.

from timber.

iboalali avatar iboalali commented on August 16, 2024

If you have a mixed kotlin and java project, you could write a kotlin function to plant the trees. Call Timber#plant from your kotlin code, and call you own kotlin plant function from your java code

from timber.

bxter avatar bxter commented on August 16, 2024

same to me, i use in react-native android project.
why not fix it ???

from timber.

danielphan2003 avatar danielphan2003 commented on August 16, 2024

For anyone who found other dependencies that use Timber 5.0+ (like https://github.com/maplibre/maplibre-native and https://github.com/maplibre/maplibre-plugins-android), you can exclude them in the gradle file (Kotlin DSL) of your app's module like this:

implementation(...) {
    exclude(group = "com.jakewharton.timber", module = "timber")
}

If not excluded, the code still compiles but your IDE will show this error as it won't know which one to use, so it goes with the later one instead.

See the tips in https://github.com/AndroidKnife/RxBus#usage for the old gradle DSL usage.

from timber.

dimaslanjaka avatar dimaslanjaka commented on August 16, 2024

image

same here

from timber.

moneeWong avatar moneeWong commented on August 16, 2024

暂时使用反射来避免红线错误
Class<?> clazz = Timber.DebugTree.class;
Timber.Tree tree;
try {
tree = (Timber.Tree) clazz.newInstance();
} catch (IllegalAccessException | InstantiationException e) {
throw new RuntimeException(e);
}
Timber.plant(tree);

from timber.

dimaslanjaka avatar dimaslanjaka commented on August 16, 2024

try this guys

Timber.plant(Timber.asTree());

from timber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.