You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement any dependency/library that used ScreenEz internally (but with different version, eg: 0.0.2 vs 0.0.3)
Call ScreenEz.with(context)
Build & run the app
Expected behavior
Run normally
Actual behavior
Crashing when the code is calling
Crash logs
FATAL EXCEPTION: main
Process: com.langhance.dictionary, PID: 2637
java.lang.IncompatibleClassChangeError: The method 'void com.torrydo.screenez.ScreenEz.with(android.content.Context)' was expected to be of type virtual but instead was found to be of type static (declaration of 'com.torrydo.floatingbubbleview.FloatingBubbleService' appears in /data/app/~~V2Q-OUOPR5-IIqkajbuEaw==/com.langhance.dictionary-6W1PtBwbnGIEr9bhujKuZg==/base.apk!classes19.dex)
at com.torrydo.floatingbubbleview.FloatingBubbleService.onCreate(FloatingBubbleService.kt:56)
at ...
dofire
changed the title
IncompatibleClassChangeError: The method 'void com.torrydo.screenez.ScreenEz.with(android.content.Context)' was expected to be of type virtual but instead was found to be of type static (declaration of 'com..' appears in /...)
Crashing when using other dependency that use ScreenEz internally
Jul 31, 2023
the reason why this error appear is:
in v0.0.3, I marked the with(context) method with @JvmStatic so that Java can use it as a static method. This error should be gone now.
Steps to reproduce
0.0.2
vs0.0.3
)ScreenEz.with(context)
Expected behavior
Run normally
Actual behavior
Crashing when the code is calling
Crash logs
ScreenEasy version
0.0.3
Android version
Android 13
Device
Google Pixel 6 pro (AVD)
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: