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: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
    ..........
    ..........
    Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.RuntimeException: Translation has been interrupted
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:696)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
    at com.android.dx.command.dexer.Main.runDx(Main.java:293)
    at com.android.dx.command.dexer.Main.main(Main.java:249)
    at com.android.dx.command.Main.main(Main.java:94)
    Caused by: java.lang.InterruptedException: Too many errors
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:688)
    ... 4 more
     
    Last edited: Jul 10, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    BillMeyer likes this.
Loading...
  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