Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crash]No interface method atLevel(Lorg/slf4j/event/Level;) #334

Closed
titanseason opened this issue Jul 12, 2023 · 6 comments
Closed

[crash]No interface method atLevel(Lorg/slf4j/event/Level;) #334

titanseason opened this issue Jul 12, 2023 · 6 comments

Comments

@titanseason
Copy link

titanseason commented Jul 12, 2023

crash in kotlin multiplatform application

java.lang.NoSuchMethodError: No interface method atLevel(Lorg/slf4j/event/Level;)Lorg/slf4j/spi/LoggingEventBuilder; in class Lorg/slf4j/Logger; or its super classes (declaration of 'org.slf4j.Logger' appears in /data/app/.../base.apk!classes15.dex)
                                                    	at io.github.oshai.kotlinlogging.slf4j.internal.LocationIgnorantKLogger.at(LocationIgnorantKLogger.kt:25)
                                                    	at io.github.oshai.kotlinlogging.KLogger$DefaultImpls.at$default(KLogger.kt:130)
                                                    	at io.github.oshai.kotlinlogging.KLogger$DefaultImpls.info(KLogger.kt:55)
                                                    	at io.github.oshai.kotlinlogging.slf4j.internal.Slf4jLogger.info(Slf4jLogger.kt:5)

dependencies:

implementation io.github.oshai:kotlin-logging:4.0.2
implementation org.slf4j:slf4j-api:1.7.36
implementation org.slf4j:slf4j-simple:1.7.36
@github-actions
Copy link

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

@oshai
Copy link
Owner

oshai commented Jul 12, 2023

I am looking into it.

@oshai
Copy link
Owner

oshai commented Jul 12, 2023

issue #335 might fix it. but it will be only in v5.

@oshai
Copy link
Owner

oshai commented Jul 12, 2023

I released now 5.0.0-beta-03, please try it when available.

@oshai
Copy link
Owner

oshai commented Jul 29, 2023

@titanseason - can you please try version 5.0.1 and report if the issue has been fixed?

@titanseason
Copy link
Author

@titanseason - can you please try version 5.0.1 and report if the issue has been fixed?

Yes, this issue has been fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants