Skip to content

Android builds produce "Deprecated Gradle features" warning #4517

@hrugani

Description

@hrugani

When building an Android app, the build log consistently shows the following warning:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

Analysis of the build log indicates that the build.gradle file generated by the server includes
deprecated elements, specifically the dexOptions { ... } block and a flatDir repository.

Could the Android build process be updated to generate a more modern build.gradle that avoids these
deprecated features? This would help ensure future compatibility and align with current Android development
best practices. (the analysis and suggestion came from GEMINI 2.5)

In summary the problem in building process passed to occours after changes in common/codenameone_settings. properties. the old version of this file works fine (compile and build). After changes in it to allow IAC comunication with an external app, the problem above pointed out.

Additional info that can help you solve the cause of our problem:\

  1. Documentation about the external app our codenameone app should communicate via IAC. external App doc
  2. The complete log file log
  3. the current common/codenameone_settings.properties with problems. current codenameone_settings
  4. the previous common/codenameone-settings.properties without problems(previous codenameone](https://drive.google.com/file/d/1mjFn0yFchg8masvZYtdPKJ8J7jVZPr4n/view?usp=drive_link)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions