Closed psyvern closed 3 years ago
Hmm... this exception is not because of a missing header file (you don't need header files for already compiled library). It is probably caused by the Discord SDK library not loaded correctly.
I also made a minimal working example (at least it works on my machine), I will attach it as a zip, so you might try to extract and run it. Maybe there is something wrong about your build.gradle
, so please try it with mine.
I tried your example and it still gives the same result. Also, i tried stopping right before the .dll is read, and both of the temporary directories are where they're supposed to be. I also tried running the code with a new user, but it still throws an exception
Ok, I will try to run it on a clean VM to see if I can replicate the error.
Which version of Java are you using?
I think I figured out the issue.
The dll I made requires two additional libraries:
A debug library that is most likely caused by a mistake of mine and the other is vcruntime140d.dll
(d stands for debug which is my mistake).
I will try to fix this issue as soon as possible.
I've made a new release (0.3.1
) which doesn't use Debug builds anymore and works on my VM.
I hope that it works on your machine too now ^^
And thank you a lot for reporting this issue. I wouldn't have noticed it by myself 👍
Yes, it is working now. Thank you!
I downloaded the examples directory and imported the v0.3 jar through gradle. I ran the
ActivityManager
example and the program crashed with the following:I suspect this is happening because i'm missing a header file in my computer, but i don't know what file.