Getting error when running builder code for GetArtistExample #340
Unanswered
ellenfang77
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Have you checked the previous issues? https://github.com/spotify-web-api-java/spotify-web-api-java/issues?q=is%3Aissue+NoClassDefFoundError+is%3Aclosed |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Getting this error, but I have com.google.gson as a referenced library in my project.
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/JsonSyntaxException
at se.michaelthelin.spotify.SpotifyHttpManager$Builder.build(SpotifyHttpManager.java:392)
at se.michaelthelin.spotify.SpotifyApi.(SpotifyApi.java:77)
at se.michaelthelin.spotify.SpotifyApi$Builder.(SpotifyApi.java:1807)
at src.main.java.edu.cmu.plugin.(plugin.java:18)
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonSyntaxException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 4 more
Beta Was this translation helpful? Give feedback.
All reactions