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

Fatal Exception: java.lang.NoSuchMethodError: No static method withInitial #2123

Closed
areehafarooq opened this issue Feb 22, 2024 · 3 comments
Closed

Comments

@areehafarooq
Copy link

Facing crash on Android 7 devices while using version 1.17.2 of library

Fatal Exception: java.lang.NoSuchMethodError: No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal; in class Ljava/lang/ThreadLocal; or its super classes (declaration of 'java.lang.ThreadLocal' appears in /system/framework/core-oj.jar)
at androidx.preference.PreferenceCategory$$ExternalSyntheticApiModelOutline0.m(D8$$SyntheticClass)
at org.jsoup.internal.StringUtil.(StringUtil.java:338)
at org.jsoup.internal.StringUtil.isBlank(StringUtil.java)
at org.jsoup.nodes.DocumentType.has(DocumentType.java:107)
at org.jsoup.nodes.DocumentType.updatePubSyskey(DocumentType.java:44)
at org.jsoup.nodes.DocumentType.(DocumentType.java:35)
at org.jsoup.parser.HtmlTreeBuilderState$1.process(HtmlTreeBuilderState.java:31)
at org.jsoup.parser.HtmlTreeBuilder.process(HtmlTreeBuilder.java:169)
at org.jsoup.parser.TreeBuilder.runParser(TreeBuilder.java:88)
at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:61)
at org.jsoup.parser.Parser.parse(Parser.java:171)
at org.jsoup.Jsoup.parse(Jsoup.java:75)

@GerardoRobledo
Copy link

facing same issue for Android 7 devices as well

 Fatal Exception: java.lang.NoSuchMethodError
No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal; in class Ljava/lang/ThreadLocal; or its super classes (declaration of 'java.lang.ThreadLocal' appears in /system/framework/core-oj.jar)

@mickael-menu
Copy link

Duplicates of #2022?

@jhy
Copy link
Owner

jhy commented Jul 1, 2024

Dupe, please see the readme and enable de-sugaring.

@jhy jhy closed this as completed Jul 1, 2024
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

4 participants