You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/18 02:16:14 UTC

[GitHub] [cordova-android] breautek edited a comment on issue #984: Build error 'cannot read property startsWith of undefined' when using adaptive icons

breautek edited a comment on issue #984:
URL: https://github.com/apache/cordova-android/issues/984#issuecomment-645726277


   Observed the error on nightly builds.
   
   Logging produces:
   
   ```
   ANDROID_ICONS {
     xxxhdpi: ImageResource {
       platform: null,
       src: 'www/img/icon-512.png',
       target: undefined,
       density: 'xxxhdpi',
       width: 512,
       height: 512,
       background: undefined,
       foreground: undefined
     },
     xhdpi: ImageResource {
       platform: null,
       src: 'www/img/icon-128_fore.png',
       target: undefined,
       density: 'xhdpi',
       width: undefined,
       height: undefined,
       background: 'www/img/icon-128_back.png',
       foreground: 'www/img/icon-128_fore.png'
     }
   }
   ```
   
   It appears that Cordova doesn't like having a mixture of adaptive and non-adaptive icons... it appears to be caused by having:
   
   `<icon width="512" height="512" density="xxxhdpi" src="www/img/icon-512.png"/>`
   
   in `config.xml` while there is another `<icon>` entry that has `background` and `foreground` properties.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org