Android Question Compile error when adding JDBC driver

Discussion in 'Android Questions' started by NamDongKyun, Jul 10, 2019.

  1. NamDongKyun

    NamDongKyun Member Licensed User

    Adding a JDBC driver in a new project with no work will result in an error.
    Some drivers do not fail.
    However, the database we are currently working on is Mariadb.
    I want to know why only the JDBC driver for a specific DB is causing an error.
    The B4A version used is 9.30.
    I installed all the recommended items in the SDK Manager.

    Below are the tested drivers.
    'Compile Fail
    '#AdditionalJar: mariadb-java-client-2.2.1 ~ 2.4.2
    '#AdditionalJar: postgresql-42.2.5

    'Compile Success
    '#AdditionalJar: mariadb-java-client-2.0.1
    '#AdditionalJar: postgresql-42.2.5.jre7
    '#AdditionalJar: postgresql-42.2.5.jre6
    '#AdditionalJar: mysql-connector-java-5.1.47-bin
    '#AdditionalJar: jaybird-full-3.0.6
    '#AdditionalJar: jaybird-3.0.6

    Below is a Compile error message.
    B4A Version: 9.30
    Java Version: 11
    Parsing code. (0.00s)
    Building folders structure. (0.02s)
    Compiling code. (0.01s)
    Compiling layouts code. (0.00s)
    Organizing libraries. (0.00s)
    (AndroidX SDK)
    Generating R file. (0.08s)
    Compiling debugger engine code. (1.03s)
    Compiling generated Java code. (1.14s)
    Convert byte code - optimized dex. Error <<<--------------------------------------
    Uncaught translation error: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
    Uncaught translation error: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
    java.lang.RuntimeException: Translation has been interrupted
    Caused by: java.lang.InterruptedException: Too many errors
    ... 4 more
    Last edited: Jul 10, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    BillMeyer likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice