Skip to content

I'm using jda to build an android bot app  #1914

@ghost

Description

Process: com.example.jdabot, PID: 18944
java.lang.ExceptionInInitializerError
at net.dv8tion.jda.internal.utils.Checks.notNull(Checks.java:68)
at net.dv8tion.jda.api.requests.GatewayIntent.getRaw(GatewayIntent.java:255)
at net.dv8tion.jda.api.requests.GatewayIntent.(GatewayIntent.java:169)
at net.dv8tion.jda.api.JDABuilder.(JDABuilder.java:58)
at net.dv8tion.jda.api.JDABuilder.createLight(JDABuilder.java:241)
at com.example.jdabot.MainActivity.(MainActivity.java:21)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1251)

here is my code

JDA jda;

{
    try {
        jda = JDABuilder.createLight(token).build();
    } catch (LoginException e) {
        e.printStackTrace();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions