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))
{
}
}
}
}
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
so what can be wrong?