JnCrMx / discord-game-sdk4j

Java bindings for Discord's Game SDK
MIT License
121 stars 23 forks source link

Failed to configure networking #46

Closed zaze06 closed 2 years ago

zaze06 commented 2 years ago

I have followed the basic setup and I'm using the DownloadNativeLibrary class to get the native library but when I try to run it I get [ERROR] Failed to configure networking: ResponseError { code: TransactionAborted, message: "Transaction was aborted" }

my code looks like this. The DownloadNativeLibrary is the same as this one

public class Main {

    public static void main(String[] args) throws IOException {
        long applicationId = <my application id>;

        File discordLibrary = DownloadNativeLibrary.downloadDiscordLibrary();
        if(discordLibrary == null)
        {
            System.err.println("Error downloading Discord SDK.");
            System.exit(-1);
        }
        // Initialize the Core
        Core.init(discordLibrary);

        try(CreateParams params = new CreateParams())
        {
            params.setClientID(applicationId);
            params.setFlags(CreateParams.getDefaultFlags());

            try(Core core = new Core(params))
            {

            }
        }
    }

}

so what can be wrong?

zaze06 commented 2 years ago

I excuse myself if this is a stupid question

zaze06 commented 2 years ago

copied code from ActivityExample.java and now it works