Android Question Error compiling : --min-sdk-version >= 25

Discussion in 'Android Questions' started by Pedro Caldeira, Oct 28, 2019.

  1. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    I am having this error even after update the sdk, Any ideias:

    Code:
    B4A Version: 9.50
    Java Version: 
    8
    Parsing code.    (
    0.04s)
    Building folders structure.    (
    0.09s)
    Compiling code.    (
    0.07s)
    Compiling layouts code.    (
    0.01s)
    Organizing libraries.    (
    0.00s)
        (AndroidX SDK)
    Generating R 
    file.    (0.34s)
    Compiling debugger engine code.    (
    2.90s)
    Compiling generated Java code.    (
    2.31s)
    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)
    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)
    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)
    Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --
    min-sdk-version >= 26)
    7 errors; aborting
     
  2. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Maybe set minSdkVersion="26" in your manifest? Or possibly you need to be building using android.jar from SDK 26+ (set in the paths configuration in B4A)?

    Also - when starting a new thread, you might want to include something about your issue in the title instead of just "Hello all". :)

    - Colin.
     
  3. Computersmith64

    Computersmith64 Well-Known Member Licensed User

  4. DonManfred

    DonManfred Expert Licensed User

  5. Pedro Caldeira

    Pedro Caldeira Active Member Licensed User

    Thanks guys,
    And sorry for the noob's mistake. I never put Hello All in the title, I was distracted for sure.
     
    Computersmith64 likes this.
  6. LucaMs

    LucaMs Expert Licensed User

    upload_2019-10-29_14-43-57.png

    (top-right)
     
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