Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:34:43+00:00 2026-06-07T15:34:43+00:00

I am attempting to perform a simple query on a database in an android

  • 0

I am attempting to perform a simple query on a database in an android application. But the program crashes every time the method is performed. Does anyone have any suggestions on how to fix this?

Here is the error log message:

07-15 17:20:23.623: ERROR/AndroidRuntime(544): Uncaught handler:
thread main exiting due to uncaught exception 07-15 17:20:23.643:
ERROR/AndroidRuntime(544): java.lang.VerifyError:
com.mysql.jdbc.MysqlIO 07-15 17:20:23.643: ERROR/AndroidRuntime(544):
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771) 07-15
17:20:23.643: ERROR/AndroidRuntime(544): at
com.mysql.jdbc.Connection.(Connection.java:1555) 07-15
17:20:23.643: ERROR/AndroidRuntime(544): at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
07-15 17:20:23.643: ERROR/AndroidRuntime(544): at
java.sql.DriverManager.getConnection(DriverManager.java:191) 07-15
17:20:23.643: ERROR/AndroidRuntime(544): at
java.sql.DriverManager.getConnection(DriverManager.java:226)

Here is my connection:

String url = "jdbc:mysql://192.126.0.1:3306/";
        String db = "db";
        String driver = "com.mysql.jdbc.Driver";
        String table = "table";
        Connection conn = null;

        try {
            Class.forName(driver);
            try {
                conn = DriverManager.getConnection(url+db,"root","");

                conn.close();

            } catch (SQLException s) {
                s.printStackTrace();
            }
        } catch (ClassNotFoundException cnfe){
            System.out.println("ERROR");
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:34:46+00:00Added an answer on June 7, 2026 at 3:34 pm

    You have a different version of the JDBC driver in your compile time environment, and a different one in your runtime environment. Scan your disk and device for mysql-connector*.jar and make sure that you have only one around.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to create a Spring application (NOT web application) to perform some simple
I'm attempting to perform a synchronous write/read in a demux-based client application with MINA
I am attempting perform what I think would be a simple task. Convert an
Im attempting to perform a basic query against some XML in an XML typed
I am using mongoid on rails3. I am attempting to perform a very simple
Attempting to perform sockets communication between Android and C# I seem to be stuck.
I am trying to create a program to perform a simple task and produce
I'm attempting to perform the most basic navigation with JQuery and I'm failing miserably.
I'm attempting to perform a DML operation against an Entity Framework model, specifically, an
I am attempting to perform a Storyboard segue from a UIbutton that is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.