Android App Icon Background White

Both of my apps have /resources/android/icon-background.png but the icons have white backgrounds. Any idea how to fix this?

Is your icon transparent? Are the transparent areas turning white? Can you share your images?

Both apps have a solid color background for the icon-background.png and the icon-foreground.png is transparent.

2023-09-02T09:45:13.121Z cordova-res:image Source image for adaptive-icon: {
  format: 'png',
  size: 5725,
  width: 432,
  height: 432,
  space: 'srgb',
  channels: 4,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: true
}
2023-09-02T09:45:13.121Z cordova-res:platform Using 'resources/android/icon-foreground.png' for adaptive-icon source image for android
2023-09-02T09:45:13.122Z cordova-res:image Generating 'resources/android/icon/ldpi-foreground.png' (81x81) fit='cover' position='center'
2023-09-02T09:45:13.123Z cordova-res:image Generating 'resources/android/icon/hdpi-foreground.png' (162x162) fit='cover' position='center'
2023-09-02T09:45:13.123Z cordova-res:image Generating 'resources/android/icon/xhdpi-foreground.png' (216x216) fit='cover' position='center'
2023-09-02T09:45:13.124Z cordova-res:image Generating 'resources/android/icon/mdpi-foreground.png' (108x108) fit='cover' position='center'
2023-09-02T09:45:13.124Z cordova-res:image Generating 'resources/android/icon/xxhdpi-foreground.png' (324x324) fit='cover' position='center'
2023-09-02T09:45:13.125Z cordova-res:image Generating 'resources/android/icon/xxxhdpi-foreground.png' (432x432) fit='cover' position='center'
2023-09-02T09:45:13.171Z cordova-res:image Source image for adaptive-icon: {
  format: 'png',
  size: 1355,
  width: 432,
  height: 432,
  space: 'srgb',
  channels: 3,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: false
}
2023-09-02T09:45:13.172Z cordova-res:platform Using 'resources/android/icon-background.png' for adaptive-icon source image for android
2023-09-02T09:45:13.172Z cordova-res:image Generating 'resources/android/icon/ldpi-background.png' (81x81) fit='cover' position='center'
2023-09-02T09:45:13.174Z cordova-res:image Generating 'resources/android/icon/mdpi-background.png' (108x108) fit='cover' position='center'
2023-09-02T09:45:13.176Z cordova-res:image Generating 'resources/android/icon/hdpi-background.png' (162x162) fit='cover' position='center'
2023-09-02T09:45:13.176Z cordova-res:image Generating 'resources/android/icon/xhdpi-background.png' (216x216) fit='cover' position='center'
2023-09-02T09:45:13.177Z cordova-res:image Generating 'resources/android/icon/xxhdpi-background.png' (324x324) fit='cover' position='center'
2023-09-02T09:45:13.182Z cordova-res:image Generating 'resources/android/icon/xxxhdpi-background.png' (432x432) fit='cover' position='center'

When I add “icon-background-source”: “#333333” to resources.json

I get the following error:

UserError: FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
See log for full details.

Can share a link to the entire log?

Here is the log:

2023-09-03 03:31:48,978 - #1 SMP Debian 5.10.149-2 (2022-10-21)
2023-09-03 03:31:49,164 - app.framework: cordova
2023-09-03 03:31:49,165 - Verbose logging is off. Change this in voltbuilder.json
2023-09-03 03:31:49,165 - VoltBuilder run started at 2023-09-03 03:31:49.165914
2023-09-03 03:31:49,166 - Plan: Indy
2023-09-03 03:31:49,166 - Preflight Check
2023-09-03 03:31:49,168 - id is com.appai.app
2023-09-03 03:31:50,116 - Output: Creating a new cordova project.

2023-09-03 03:32:27,744 - Output: Using cordova-fetch for cordova-android@12.0.0
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.appai.app
	Name: appai
	Activity: MainActivity
	Android Target SDK: android-33
	Android Compile SDK: 33
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@12.0.0
Platform 'android' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-file' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-inappbrowser' found in config.xml... Migrating it to package.json
Plugin 'cordova-zip-plugin' found in config.xml... Migrating it to package.json
Plugin 'admob-plus-cordova-native' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-nativestorage' found in config.xml... Migrating it to package.json
Plugin 'cordova-save-to-photoalbum' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-camera' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-statusbar' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-splashscreen' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-screen-orientation' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-apprate' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-x-socialsharing-android12' found in config.xml... Migrating it to package.json
Plugin 'cordova-base64-to-gallery' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-android-permissions' found in config.xml... Migrating it to package.json
Plugin 'cordova-android-support-gradle-release' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-ios-camera-permissions' found in config.xml... Migrating it to package.json
Discovered plugin "cordova-plugin-file". Adding it to the project
Installing "cordova-plugin-file" for android
Subproject Path: CordovaLib
Subproject Path: app

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

to config.xml in order for the application to find previously stored files.
        
Adding cordova-plugin-file to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for android
Adding cordova-plugin-inappbrowser to package.json
Discovered plugin "cordova-zip-plugin". Adding it to the project
Installing "com.jjdltc.cordova.plugin.zip" for android
Adding com.jjdltc.cordova.plugin.zip to package.json
Discovered plugin "admob-plus-cordova-native". Adding it to the project
Installing "admob-plus-cordova-native" for android
Adding admob-plus-cordova-native to package.json
Discovered plugin "cordova-save-to-photoalbum". Adding it to the project
Installing "com.nimingban.cordova.savetophotoalbum" for android
Adding com.nimingban.cordova.savetophotoalbum to package.json
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-camera to package.json
Discovered plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for android
Adding cordova-plugin-statusbar to package.json
Discovered plugin "cordova-plugin-splashscreen". Adding it to the project
Unmet project requirements for latest version of cordova-plugin-splashscreen:
    cordova-android (12.0.0 in project, >=3.6.0 <11.0.0 required)
Fetching highest version of cordova-plugin-splashscreen that this project supports: 6.0.1 (latest is 6.0.2)
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
Discovered plugin "cordova-plugin-screen-orientation". Adding it to the project
Installing "cordova-plugin-screen-orientation" for android
Installing "es6-promise-plugin" for android
Adding cordova-plugin-screen-orientation to package.json
Discovered plugin "cordova-plugin-apprate". Adding it to the project
Installing "cordova-plugin-apprate" for android
Installing "cordova-plugin-dialogs" for android
Plugin dependency "cordova-plugin-nativestorage@2.3.2" already fetched, using that version.
Dependent plugin "cordova-plugin-nativestorage" already installed on android.
Subproject Path: CordovaLib
Subproject Path: app
Cross-platform AppRate plugin for Cordova / PhoneGap
Adding cordova-plugin-apprate to package.json
Discovered plugin "cordova-plugin-x-socialsharing-android12". Adding it to the project
Installing "cordova-plugin-x-socialsharing-android12" for android
Plugin dependency "es6-promise-plugin@4.2.2" already fetched, using that version.
Dependent plugin "es6-promise-plugin" already installed on android.
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-x-socialsharing-android12 to package.json
Discovered plugin "cordova-base64-to-gallery". Adding it to the project
Installing "cordova-base64-to-gallery" for android
Adding cordova-base64-to-gallery to package.json
Discovered plugin "cordova-plugin-android-permissions". Adding it to the project
Installing "cordova-plugin-android-permissions" for android
Adding cordova-plugin-android-permissions to package.json
Discovered plugin "cordova-android-support-gradle-release". Adding it to the project
Installing "cordova-android-support-gradle-release" for android
Subproject Path: CordovaLib
Subproject Path: app
12.0.0
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/app/build.gradle
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/cordova-android-support-gradle-release/app-cordova-android-support-gradle-release.gradle
Adding cordova-android-support-gradle-release to package.json
Discovered plugin "cordova-plugin-ios-camera-permissions". Adding it to the project
Installing "cordova-plugin-ios-camera-permissions" for android
Adding cordova-plugin-ios-camera-permissions to package.json
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/app/build.gradle
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/cordova-android-support-gradle-release/app-cordova-android-support-gradle-release.gradle

2023-09-03 03:32:29,968 - Output: 
Cordova Packages:

    cli: 12.0.0
        common: 5.0.0
        create: 5.0.0
        lib: 12.0.1
            common: 5.0.0
            fetch: 4.0.0
            serve: 4.0.1

Project Installed Platforms:

    android: 12.0.0

Project Installed Plugins:

    admob-plus-cordova-native: 1.0.0-alpha.14
    com.jjdltc.cordova.plugin.zip: 2.0.0
    com.nimingban.cordova.savetophotoalbum: 0.0.1
    cordova-android-support-gradle-release: 3.0.1
    cordova-base64-to-gallery: 4.1.3
    cordova-plugin-android-permissions: 1.1.5
    cordova-plugin-apprate: 1.7.2
    cordova-plugin-camera: 6.0.0
    cordova-plugin-dialogs: 2.0.2
    cordova-plugin-file: 8.0.0
    cordova-plugin-inappbrowser: 5.0.0
    cordova-plugin-ios-camera-permissions: 1.2.0
    cordova-plugin-nativestorage: 2.3.2
    cordova-plugin-screen-orientation: 3.0.3
    cordova-plugin-splashscreen: 6.0.1
    cordova-plugin-statusbar: 3.0.0
    cordova-plugin-x-socialsharing-android12: 6.0.5
    es6-promise-plugin: 4.2.2

Environment:

    OS: Ubuntu 22.04.2 LTS (linux 5.10.0-19-cloud-amd64) x64
    Node: v18.16.0
    npm: 9.7.1

android Environment:

    android:
Loading local repository...                                                     
[=========                              ] 25% Loading local repository...       
[=========                              ] 25% Fetch remote repository...        
[=======================================] 100% Fetch remote repository...       
Available Android targets:
----------
id: 1 or "android-29"
     Name: Android API 29
     Type: Platform
     API level: 29
     Revision: 5
----------
id: 2 or "android-30"
     Name: Android API 30
     Type: Platform
     API level: 30
     Revision: 3
----------
id: 3 or "android-31"
     Name: Android API 31
     Type: Platform
     API level: 31
     Revision: 1
----------
id: 4 or "android-32"
     Name: Android API 32
     Type: Platform
     API level: 32
     Revision: 1
----------
id: 5 or "android-33"
     Name: Android API 33, extension level 3
     Type: Platform
     API level: 33
     Revision: 2


Project Setting Files:

    config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.appai.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>appai</name>
    <description>
        Tools and resources built into one app
    </description>
    <feature name="CDVWebViewEngine">
        <param name="iso-package" value="CDVWebViewEngine" />
    </feature>
    <feature name="Camera">
        <param name="ios-package" value="CDVCamera" />
    </feature>
    <feature name="JJzip">
        <param name="iso-package" value="JJzip" />
    </feature>
    <feature name="File">
        <param name="ios-package" value="CDVFile" />
        <param name="onload" value="true" />
        <param name="android-package" value="org.apache.cordova.file.FileUtils" />
    </feature>
    <content src="index.html" />
    <access origin="blob://*" />
    <access origin="*" />
    <access origin="cdvfile://*" />
    <allow-intent href="*" />
    <allow-intent href="https://*/*" />
    <allow-navigation href="*" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="Fullscreen" value="false" />
    <preference name="SplashScreenDelay" value="4000" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="SplashScreen" value="screen" />
    <preference name="stay-in-webview" value="false" />
    <preference name="android-minSdkVersion" value="28" />
    <preference name="android-targetSdkVersion" value="33" />
    <preference name="orientation" value="portrait" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="iosPersistentFileLocation" value="Library" />
    <preference name="scheme" value="app" />
    <preference name="hostname" value="localhost" />
    <preference name="AndroidXEnabled" value="true" />
    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashIcon.png" />
    <preference name="AndroidWindowSplashScreenBackground" value="#070922" />
    <engine name="android" spec="12.0.0" />
    <plugin name="cordova-plugin-file" />
    <plugin name="cordova-plugin-inappbrowser" />
    <plugin name="cordova-zip-plugin" />
    <plugin name="admob-plus-cordova-native" />
    <plugin name="cordova-plugin-nativestorage" />
    <plugin name="cordova-save-to-photoalbum" />
    <plugin name="cordova-plugin-camera" />
    <plugin name="cordova-plugin-statusbar" />
    <plugin name="cordova-plugin-splashscreen" />
    <plugin name="cordova-plugin-screen-orientation" />
    <plugin name="cordova-plugin-apprate" spec="^1.7.2" />
    <plugin name="cordova-plugin-x-socialsharing-android12" spec="^6.0.4" />
    <plugin name="cordova-base64-to-gallery" spec="4.1.3" />
    <plugin name="cordova-plugin-android-permissions" />
    <access launch-external="yes" origin="tel:*" />
    <access launch-external="yes" origin="geo:*" />
    <access launch-external="yes" origin="mailto:*" />
    <access launch-external="yes" origin="sms:*" />
    <access launch-external="yes" origin="market:*" />
    <platform name="android">
        <color name="colorAccent">#5b1779</color>
        <preference name="loadUrlTimeoutValue" value="700000" />
        <activity android:name="com.appai.app">
            <intent-filter>
                <action android:name="com.appai.app" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
            <application android:exported="true" />
        </edit-config>
        <feature name="SocialSharing">
            <param name="android-package" value="nl.xservices.plugins.SocialSharing" />
        </feature>
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
            <application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true"/>
        </edit-config>
    </platform>
    <platform name="ios">
        <preference name="deployment-target" value="12.0" />
        <preference name="SwiftVersion" value="5.3" />
        <resource-file src="GoogleService-Info.plist" />
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
            <string>Allow appai to save images to your library.</string>
        </edit-config>
        <feature name="SocialSharing">
            <param name="ios-package" value="SocialSharing" />
        </feature>
        <config-file parent="UIUserInterfaceStyle" target="*-Info.plist">
            <string>Light</string>
        </config-file>
    </platform>
    <plugin name="cordova-android-support-gradle-release" source="npm">
        <variable name="ANDROID_SUPPORT_VERSION" value="28.+" />
    </plugin>
    <preference name="Allow3DTouchLinkPreview" value="false" />
    <plugin name="cordova-plugin-ios-camera-permissions" spec="^1.2.0">
        <variable name="CAMERA_USAGE_DESCRIPTION" value="Allow appai to save images to your library." />
        <variable name="PHOTOLIBRARY_ADD_USAGE_DESCRIPTION" value="Allow appai to save images to your library." />
        <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Allow appai to save images to your library." />
    </plugin>
</widget>

    package.json:
--- Start of Cordova JSON Snippet ---
{
  "platforms": [
    "android"
  ],
  "plugins": {
    "cordova-plugin-file": {
      "ANDROIDX_WEBKIT_VERSION": "1.4.0"
    },
    "cordova-plugin-inappbrowser": {},
    "cordova-zip-plugin": {},
    "admob-plus-cordova-native": {},
    "cordova-plugin-nativestorage": {},
    "cordova-save-to-photoalbum": {},
    "cordova-plugin-camera": {
      "ANDROIDX_CORE_VERSION": "1.6.+"
    },
    "cordova-plugin-statusbar": {},
    "cordova-plugin-splashscreen": {},
    "cordova-plugin-screen-orientation": {},
    "cordova-plugin-apprate": {
      "PLAY_CORE_VERSION": "1.+"
    },
    "cordova-plugin-x-socialsharing-android12": {},
    "cordova-base64-to-gallery": {},
    "cordova-plugin-android-permissions": {},
    "cordova-android-support-gradle-release": {
      "ANDROID_SUPPORT_VERSION": "28.+"
    },
    "cordova-plugin-ios-camera-permissions": {
      "CAMERA_USAGE_DESCRIPTION": "Allow appai to save images to your library.",
      "PHOTOLIBRARY_ADD_USAGE_DESCRIPTION": "Allow appai to save images to your library.",
      "PHOTOLIBRARY_USAGE_DESCRIPTION": "Allow appai to save images to your library."
    },
    "com.jjdltc.cordova.plugin.zip": {},
    "com.nimingban.cordova.savetophotoalbum": {}
  }
}
--- End of Cordova JSON Snippet ---


2023-09-03 03:32:31,084 - Output: 2023-09-03T03:32:30.124Z cordova-res Paths: (config: '/config.xml') (resources dir: 'resources')
2023-09-03T03:32:30.136Z cordova-res:platform Running android platform with options: {
  'adaptive-icon': {
    icon: { sources: [Array] },
    foreground: { sources: [Array] },
    background: { sources: [Array] }
  },
  icon: {
    sources: [
      '/resources/iconTemplate.png'
    ]
  },
  splash: {
    sources: [
      '/resources/splashTemplate.png'
    ]
  }
}
2023-09-03T03:32:30.136Z cordova-res:platform Building adaptive-icon resources
2023-09-03T03:32:30.136Z cordova-res:platform Building icon resources for android platform
2023-09-03T03:32:30.141Z cordova-res:image Source image for icon: {
  format: 'png',
  size: 899444,
  width: 1024,
  height: 1024,
  space: 'srgb',
  channels: 3,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: false
}
2023-09-03T03:32:30.141Z cordova-res:platform Using '/resources/iconTemplate.png' for icon source image for android
2023-09-03T03:32:30.143Z cordova-res:image Generating 'resources/android/icon/drawable-ldpi-icon.png' (36x36) fit='cover' position='center'
2023-09-03T03:32:30.146Z cordova-res:image Generating 'resources/android/icon/drawable-mdpi-icon.png' (48x48) fit='cover' position='center'
2023-09-03T03:32:30.146Z cordova-res:image Generating 'resources/android/icon/drawable-xxhdpi-icon.png' (144x144) fit='cover' position='center'
2023-09-03T03:32:30.149Z cordova-res:image Generating 'resources/android/icon/drawable-xxxhdpi-icon.png' (192x192) fit='cover' position='center'
2023-09-03T03:32:30.153Z cordova-res:image Generating 'resources/android/icon/drawable-hdpi-icon.png' (72x72) fit='cover' position='center'
2023-09-03T03:32:30.153Z cordova-res:image Generating 'resources/android/icon/drawable-xhdpi-icon.png' (96x96) fit='cover' position='center'
2023-09-03T03:32:30.225Z cordova-res:image Source image for adaptive-icon: {
  format: 'png',
  size: 5725,
  width: 432,
  height: 432,
  space: 'srgb',
  channels: 4,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: true
}
2023-09-03T03:32:30.225Z cordova-res:platform Using 'resources/android/icon-foreground.png' for adaptive-icon source image for android
2023-09-03T03:32:30.226Z cordova-res:image Generating 'resources/android/icon/ldpi-foreground.png' (81x81) fit='cover' position='center'
2023-09-03T03:32:30.226Z cordova-res:image Generating 'resources/android/icon/mdpi-foreground.png' (108x108) fit='cover' position='center'
2023-09-03T03:32:30.227Z cordova-res:image Generating 'resources/android/icon/hdpi-foreground.png' (162x162) fit='cover' position='center'
2023-09-03T03:32:30.228Z cordova-res:image Generating 'resources/android/icon/xhdpi-foreground.png' (216x216) fit='cover' position='center'
2023-09-03T03:32:30.228Z cordova-res:image Generating 'resources/android/icon/xxhdpi-foreground.png' (324x324) fit='cover' position='center'
2023-09-03T03:32:30.230Z cordova-res:image Generating 'resources/android/icon/xxxhdpi-foreground.png' (432x432) fit='cover' position='center'
2023-09-03T03:32:30.276Z cordova-res:platform Building splash resources for android platform
2023-09-03T03:32:30.279Z cordova-res:image Source image for splash: {
  format: 'png',
  size: 1884192,
  width: 2732,
  height: 2732,
  space: 'srgb',
  channels: 3,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: false
}
2023-09-03T03:32:30.279Z cordova-res:platform Using '/resources/splashTemplate.png' for splash source image for android
2023-09-03T03:32:30.280Z cordova-res:image Generating 'resources/android/splash/drawable-land-ldpi-screen.png' (320x240) fit='cover' position='center'
2023-09-03T03:32:30.284Z cordova-res:image Generating 'resources/android/splash/drawable-land-mdpi-screen.png' (480x320) fit='cover' position='center'
2023-09-03T03:32:30.285Z cordova-res:image Generating 'resources/android/splash/drawable-land-hdpi-screen.png' (800x480) fit='cover' position='center'
2023-09-03T03:32:30.285Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxhdpi-screen.png' (1600x960) fit='cover' position='center'
2023-09-03T03:32:30.286Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxxhdpi-screen.png' (1920x1280) fit='cover' position='center'
2023-09-03T03:32:30.286Z cordova-res:image Generating 'resources/android/splash/drawable-port-ldpi-screen.png' (240x320) fit='cover' position='center'
2023-09-03T03:32:30.287Z cordova-res:image Generating 'resources/android/splash/drawable-port-mdpi-screen.png' (320x480) fit='cover' position='center'
2023-09-03T03:32:30.287Z cordova-res:image Generating 'resources/android/splash/drawable-port-hdpi-screen.png' (480x800) fit='cover' position='center'
2023-09-03T03:32:30.287Z cordova-res:image Generating 'resources/android/splash/drawable-land-xhdpi-screen.png' (1280x720) fit='cover' position='center'
2023-09-03T03:32:30.288Z cordova-res:image Generating 'resources/android/splash/drawable-port-xhdpi-screen.png' (720x1280) fit='cover' position='center'
2023-09-03T03:32:30.289Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxxhdpi-screen.png' (1280x1920) fit='cover' position='center'
2023-09-03T03:32:30.291Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxhdpi-screen.png' (960x1600) fit='cover' position='center'
Generated 24 resources for Android
2023-09-03T03:32:31.056Z cordova-res:cordova:config Color sources found--generating colors document.
2023-09-03T03:32:31.058Z cordova-res:cordova:config Creating node for 'background'
2023-09-03T03:32:31.059Z cordova-res:cordova:config Creating 'resource-file' node (not found by xpaths: [ "resource-file[@src='resources/values/colors.xml']" ])
2023-09-03T03:32:31.060Z cordova-res:cordova:config Orientation preference: undefined
2023-09-03T03:32:31.061Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='ldpi']" ])
2023-09-03T03:32:31.061Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='mdpi']" ])
2023-09-03T03:32:31.061Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='hdpi']" ])
2023-09-03T03:32:31.062Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='xhdpi']" ])
2023-09-03T03:32:31.062Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='xxhdpi']" ])
2023-09-03T03:32:31.062Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@foreground][@background][@density='xxxhdpi']" ])
2023-09-03T03:32:31.062Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='ldpi']" ])
2023-09-03T03:32:31.062Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='mdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='hdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xhdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xxhdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xxxhdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-ldpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-mdpi']" ])
2023-09-03T03:32:31.063Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-hdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xhdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xxhdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xxxhdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-ldpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-mdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-hdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xhdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xxhdpi']" ])
2023-09-03T03:32:31.064Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xxxhdpi']" ])
Wrote to config.xml

2023-09-03 03:33:08,802 - Output: 12.0.0
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/app/build.gradle
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/cordova-android-support-gradle-release/app-cordova-android-support-gradle-release.gradle
Discovered plugin "cordova-zip-plugin". Adding it to the project
Plugin "com.jjdltc.cordova.plugin.zip" already installed on android.
Discovered plugin "cordova-save-to-photoalbum". Adding it to the project
Plugin "com.nimingban.cordova.savetophotoalbum" already installed on android.
The "<splash>" tags were detected and are no longer supported. Please migrate to the "preference" tag "AndroidWindowSplashScreenAnimatedIcon".
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/app/build.gradle
cordova-android-support-gradle-release: Wrote custom version '28.+' to /platforms/android/cordova-android-support-gradle-release/app-cordova-android-support-gradle-release.gradle
Checking Java JDK and Android SDK versions
ANDROID_HOME=/opt/android-sdk (recommended setting)
ANDROID_SDK_ROOT=/opt/android-sdk (DEPRECATED)
Using Android SDK: /opt/android-sdk
Reading build config file: /build.json
Reading the keystore from: /agent/voltbuilder/platforms/assets/debug.p12
Starting a Gradle Daemon, 4 incompatible Daemons could not be reused, use --status for details
> Task :wrapper

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

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

> Configure project :app
+-----------------------------------------------------------------
| cordova-android-support-gradle-release: 28.+
+-----------------------------------------------------------------

> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preDebugBuild UP-TO-DATE
> Task :CordovaLib:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :CordovaLib:packageDebugRenderscript
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :CordovaLib:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :app:checkDebugAarMetadata

> Task :CordovaLib:compileDebugRenderscript
The RenderScript APIs are deprecated. They will be removed in Android Gradle plugin 9.0. See the following link for a guide to migrate from RenderScript: https://developer.android.com/guide/topics/renderscript/migrate

> Task :CordovaLib:generateDebugResValues
> Task :CordovaLib:generateDebugResources
> Task :CordovaLib:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :CordovaLib:extractDeepLinksDebug
> Task :CordovaLib:compileDebugLibraryResources
> Task :CordovaLib:processDebugManifest
> Task :CordovaLib:parseDebugLocalResources
> Task :app:mergeDebugResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :CordovaLib:generateDebugBuildConfig
> Task :CordovaLib:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:mergeDebugShaders
> Task :app:processDebugManifestForPackage
> Task :CordovaLib:compileDebugShaders NO-SOURCE
> Task :CordovaLib:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:packageDebugAssets
> Task :CordovaLib:generateDebugRFile
> Task :app:mergeDebugAssets
> Task :app:processDebugResources FAILED

> Task :CordovaLib:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:/platforms/android/app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml:1712: AAPT: error: resource color/cdv_splashscreen_background (aka com.appai.app:color/cdv_splashscreen_background) not found.
         

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

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

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 30s
29 actionable tasks: 29 executed
Command failed with exit code 1: /platforms/android/gradlew -b /platforms/android/build.gradle cdvBuildDebug

2023-09-03 03:33:08,810 - FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
See log for full details.
2023-09-03 03:33:08,811 - Build failed 6e62ab4d-f15b-4565-a072-d989a8b4692e
2023-09-03 03:33:10,562 - Output: Package                      Current  Wanted  Latest  Location                                  Depended by
cordova-android               12.0.0  12.0.1  12.0.1  node_modules/cordova-android              6e62ab4d-f15b-4565-a072-d989a8b4692e
cordova-plugin-splashscreen    6.0.1   6.0.2   6.0.2  node_modules/cordova-plugin-splashscreen  6e62ab4d-f15b-4565-a072-d989a8b4692e

Any updates on this? It appears the icon-background isn’t being processed based on the log.

If you can share your project with me, or even a minimal project that exhibits this behavior it would be very helpful. We’re having trouble reproducing it here.

Hello,

I sent over a sample project to support@volt.build.

Thank you,

Thanks - we’ve been able to reproduce this. We’re trying to sort out what the problem is.

Sound good. Looking forward to what you find out. Thanks!

I’m continuing to investigate but from what I see this appears to be a problem with using adaptive icons. I believe a standard icon will work without issue.

I’ll update this thread once I learn more - I’m not sure if this is a bug in cordova, cordova-res, or something else.

Good news! This was a bug in cordova-android and it’s been fixed. If you set your engine to 12.0.1 everything should work as intended!

Works, thank you!