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

App crashes when opening app (java.lang.NoSuchMethodError) #26

Closed
klaurence opened this issue Jan 28, 2024 · 3 comments
Closed

App crashes when opening app (java.lang.NoSuchMethodError) #26

klaurence opened this issue Jan 28, 2024 · 3 comments

Comments

@klaurence
Copy link

Description

FastLyrics crashes when I open the app.

This is possibly related to #21, but the errors are different to one another.

Crash log
FATAL EXCEPTION: main
Process: io.github.teccheck.fastlyrics, PID: 6256
java.lang.NoSuchMethodError: No virtual method isActive()Z in class Landroid/media/session/PlaybackState; or its super classes (declaration of 'android.media.session.PlaybackState' appears in /system/framework/framework.jar!classes2.dex)
	at io.github.teccheck.fastlyrics.api.MediaSession$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
	at io.github.teccheck.fastlyrics.api.MediaSession.init(MediaSession.kt:48)
	at io.github.teccheck.fastlyrics.FastLyricsApp.onCreate(FastLyricsApp.kt:12)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1189)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6866)
	at android.app.ActivityThread.access$1600(ActivityThread.java:242)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:227)
	at android.app.ActivityThread.main(ActivityThread.java:7822)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)

Environment information

  • Android: 10
  • App version: 0.5.1 (6)
  • App downloaded from: GitHub
@klaurence klaurence changed the title App crashes when opening app App crashes when opening app (java.lang.NoSuchMethodError) Jan 28, 2024
@teccheck
Copy link
Owner

Thanks for the bugreport. I think I know why this bug occurs. I'll try to fix it soon

@teccheck
Copy link
Owner

teccheck commented Jan 28, 2024

I've published a new release (0.5.2) here on Github. Does this fix the problem?

@teccheck teccheck moved this to In Progress in FastLyrics Todo Jan 28, 2024
@klaurence
Copy link
Author

It does. Thank you!

@github-project-automation github-project-automation bot moved this from In Progress to Done in FastLyrics Todo Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants