title: What is causing this error while connecting Android Studio App to Mysql with Jdbc
body: <p>When attempting to use this query to save data to a mysql local database using this code:</p>
  
  <pre><code>private void addEvent_query(String eventEndDateTime, String eventFrequencyText, String eventIdText, String isGoal, String eventNameText, String eventNotificationDateTime, String eventStartDateTime) {
      try {
          Class.forName("com.mysql.jdbc.Driver");
      } catch (ClassNotFoundException cnfe) {
          System.out.println("Driver not loaded");
          return;
      }
  
      try {
          Connection conn = DriverManager.getConnection("jdbc:mysql://localhost", "root", "GroupG");
          Statement stmt = conn.createStatement();
          stmt.executeUpdate("insert into DBO.EVENT(EndDate, Frequency, Id, IsGoal, Name, NotificationDate, StartDate) " +
                  "values (" + eventEndDateTime + ", " + eventFrequencyText + ", " + eventIdText + ", '" + isGoal + "', '" + eventNameText + "', '" + eventNotificationDateTime + "', '" + eventStartDateTime + "')");
  
          conn.close();
          stmt.close();
      } catch (SQLException se) {
          System.out.println("Error");
          return;
      }
  }
  </code></pre>
  
  <p>I get the following error when trying to invoke it:</p>
  
  <blockquote>
    <p>Caused by: java.lang.NoClassDefFoundError: Invalid descriptor: CapabilitiesGetOrBuilder.
            at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.(AbandonedConnectionCleanupThread.java:58) 
            at java.lang.Class.classForName(Native Method) 
            at java.lang.Class.forName(Class.java:453) 
            at java.lang.Class.forName(Class.java:378) 
            at com.mysql.cj.jdbc.NonRegisteringDriver.(NonRegisteringDriver.java:99) 
            at java.lang.Class.classForName(Native Method) 
            at java.lang.Class.forName(Class.java:453) 
            at java.lang.Class.forName(Class.java:378) 
            at com.example.earlybird.AddEventActivity.addEvent_query(AddEventActivity.java:251) 
            at com.example.earlybird.AddEventActivity.access$900(AddEventActivity.java:24) 
            at com.example.earlybird.AddEventActivity$8.onClick(AddEventActivity.java:240) </p>
  </blockquote>