1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Issue on later B4 version 9.0

Discussion in 'Android Questions' started by Liew, Apr 25, 2019.

  1. Liew

    Liew Member Licensed User

    Hi, can anyone tell me why I encountered this problem when I migrate from version 8.3 to the latest.

    My program cannot be compiled and the errors is as below:
    B4A Version: 9.01.2
    Java Version: 11
    Parsing code. (0.25s)
    Building folders structure. (0.05s)
    Compiling code. (1.07s)
    Compiling layouts code. (0.04s)
    Organizing libraries. (0.00s)
    Generating R file. (0.22s)
    Compiling debugger engine code. (8.62s)
    Compiling generated Java code. (4.08s)
    Convert byte code - optimized dex. Error
    Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
    Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
    Uncaught translation error: java.lang.IllegalArgumentException: already added:
  2. Brandsum

    Brandsum Active Member Licensed User

    Could you post the list of libraries you are using for your project?
  3. DonManfred

    DonManfred Expert Licensed User

    Better upload a small project which shows the issue.
    Brandsum likes this.
  4. Cableguy

    Cableguy Expert Licensed User

    First of all, PLEASE use code tags for the error text, it makes it much easier to read.

    From your error log, there seems to be a duplicate issue related to animation. Maybe you ate using libs that conflict with each other because they declare the same object using the same name.
    As sugessugg, upload a small project that will allow us to help you further.
    Another suggestion is, based on the error, to comment out animation related code, including declaration of lib objects, and see it compiles
  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