Giter Site home page Giter Site logo

Runtime crash about lumberjack HOT 6 CLOSED

ToastedNickel avatar ToastedNickel commented on May 25, 2024 1
Runtime crash

from lumberjack.

Comments (6)

MFlisar avatar MFlisar commented on May 25, 2024

Maybe updating the dependency to logback-android 3.0.0 helps as it has some changes for R8 (e.g. tony19/logback-android#229 you may try this

from lumberjack.

ToastedNickel avatar ToastedNickel commented on May 25, 2024

I followed that link and I already have the proguard rules it says to add. How do I update the dependency to logback-android 3.0.0 in your library?

from lumberjack.

MFlisar avatar MFlisar commented on May 25, 2024

Should be solved with 5.3.1. I updated dependencies and added some custom proguard rules on top to fix this issue as well

from lumberjack.

ToastedNickel avatar ToastedNickel commented on May 25, 2024

I upgraded to 6.0.2 and I'm still getting the same exception:

Unable to create application: java.lang.IllegalStateException: FileNamePattern
[/data/user/0/com.company.applicationname/files/ApplicationLog%i.txt] does not contain a valid IntegerToken

from lumberjack.

MFlisar avatar MFlisar commented on May 25, 2024

Please try adding the proguard rule yourself to your project:

https://github.com/MFlisar/Lumberjack/blob/master/library%2Fimplementations%2Ftimber%2Fconsumer-proguard-rules.pro

I'm checking this from my mobile and I think that I forgot to use the proguard file in the timber module if I see that correctly. Adding it yourself should help as well though.

I'll check that soon in more detail.

from lumberjack.

ToastedNickel avatar ToastedNickel commented on May 25, 2024

Please try adding the proguard rule yourself to your project:

https://github.com/MFlisar/Lumberjack/blob/master/library%2Fimplementations%2Ftimber%2Fconsumer-proguard-rules.pro

I'm checking this from my mobile and I think that I forgot to use the proguard file in the timber module if I see that correctly. Adding it yourself should help as well though.

I'll check that soon in more detail.

I had tried that already before messaging you, but I just tried it again to make sure, and now I'm getting a NullPointerException the first time that Timber.d() gets called.

from lumberjack.

Related Issues (17)

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.