Support for Cordova Android 12.0.1

takuya
The Web Tub
Published in
2 min readSep 25, 2023

Monaca has started supporting Cordova Android 12.0.1. With the release of Cordova Android 12.0.1, the issue concerning adaptive icons has been resolved.

In this new version, the adaptive icon generation issue observed in the previous version of Cordova-Android 12.0.0, due to the introduction of Android 13’s themed app icons, has been fixed. With this fix, adaptive icons are created correctly even if the monochrome attribute is not specified in the icon tag of the config.xml file.

//config.xml
<platform name="android">
<icon monochrome="res/icon/android/ldpi-monochrome.png" background="res/icon/android/ldpi-background.png" density="ldpi" foreground="res/icon/android/ldpi-foreground.png" />
~~~~~~~~
</platform>

Here’s how you can utilize Cordova Android 12.0.1:

  1. Starting the Project:
    Open the relevant project (Only Cordova 12 and above can select Android 12.0.1).
  2. Accessing Build Settings:
    Find ‘Build’ from the header menu at the top of the screen, and click on ‘Build Environment Settings’ within.
  3. Selecting the Android Version:
    In the displayed screen, open the ‘Android tab’, and select ‘12.0.1’ from the menu.

By following these steps, you can select and configure the build settings for Android version 12.0.1 in Cordova 12 series projects.

--

--