-
Notifications
You must be signed in to change notification settings - Fork 10
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
java.lang.NoClassDefFoundError: com/amplitude/Amplitude #98
Comments
Hi @adrianboguszewski thanks for choosing Amplitude! Are you able to provide more details of when/where the error occurs? Is it when calling Thanks! |
@justin-fiedler I use Amplitude for analytics in my JetBrains IDE plugin, so the environment is given by the IDE. This is what I got from the user:
and
The init is done with the following code:
And I checked that the Amplitude SDK jar is included in my plugin jar. |
@adrianboguszewski I some spent time investigating this issue and found some similar issues that seem to be related to how libraries are added to Jetbrains plugins. I think this is an issue with the Plugin dependency setup rather than the Amplitude SDK.
I'm curious is this happening for all users or just one? Thanks! |
@justin-fiedler, thank you for investigating this. According to the issues you mentioned above, the problem should come from mixing Java and Kotlin. But I don't use Java in my project, just Kotlin. And the problem occurs only for that user. No one else reported this and I can see all data from other users in Amplitude. |
Summary
One of my users is getting java.lang.NoClassDefFoundError: com/amplitude/Amplitude when trying to initialize Amplitude. What may be the reason for that?
OS:
MacOS Ventura 13.6.2 on a MacPro 16 M1 Max
Java:
Runtime version: 17.0.9+7-b1000.46 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
The text was updated successfully, but these errors were encountered: