Migrating to AndroidX

In Defold 1.2.177 we will enabled support for the Android Jetifier tool to the Defold build servers to help with migration to AndroidX. The Jetifier tool is currently running on the beta server (https://build-stage.defold.com) and will be available on the main build server when 1.2.177 is released in about a week.

The Jetifier tool will automatically try to migrate dependencies defined in the build.gradle files of extensions and in .jar files in your project. The Jetifier tool is enabled as an application manifest setting for armv7 and arm64:

    armv7-android:
        context:
            ...
            jetifier: true

    arm64-android:
        context:
            ...
            jetifier: true

The online manifest generator has been updated to support the new setting:

https://britzl.github.io/manifestation/

2 Likes