-
Notifications
You must be signed in to change notification settings - Fork 4
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
NoSuchMethodError: No static method getLogger(Ljava/lang/String;)Ljava/lang/System$Logger #10
Comments
Hello @Shootstylee. I see that you're trying to use this library on an Android application, can you give me more details to reproduce your issue, like a snippet of your code and the Android API version? |
Hello @SandroHc, Thanks for the fast answer.
|
The issue is caused by the Caffeine library, which does not support Android (ben-manes/caffeine#293). I will remove it from reactive-jikan and leave the caching details for the developers to implement. |
Caffeine cannot be used as the default due to it not supporting Android (ben-manes/caffeine#293).
Released v2.1.0 that fixes this issue. @Shootstylee, can you please upgrade to this new version? The following may be necessary for reactive-jikan/Netty to work on Android (reactor/reactor-netty#1447): Jikan jikan = new Jikan.JikanBuilder()
.httpClientCustomizer(httpClient -> httpClient.resolver(DefaultAddressResolverGroup.INSTANCE))
.build(); |
Hey, thanks again for the quick response and fix!
There is also sadly no way to implement netty into android studio since they dont provide any because of the JDK. |
Was not able to reproduce your issue; tried with Found that Netty only supports Java 8+ (netty/netty-tcnative#443) and that it does not officially support Android (netty/netty#10029). If all else fails, you may want to try and downgrade the "reactor-netty" version by copying the following to your dependencies block on build.gradle (#3): |
Hello, I sadly could not fix this issue, however I decided to pull the data with volley, thanks for the help 👍🏻 |
Hello, im kinda new to APIS and Wrappers, I tried to use this, but Im getting an error.
java.lang.NoSuchMethodError: No static method getLogger(Ljava/lang/String;)Ljava/lang/System$Logger; in class Ljava/lang/System; or its super classes (declaration of 'java.lang.System' appears in /apex/com.android.art/javalib/core-oj.jar)
The text was updated successfully, but these errors were encountered: