You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/03 21:50:32 UTC

[GitHub] [cordova-android] whyameye opened a new issue #942: adaptive icons broken

whyameye opened a new issue #942: adaptive icons broken
URL: https://github.com/apache/cordova-android/issues/942
 
 
   # Bug Report
   
   ## Problem
   adaptive icons as explained in the docs prevent compilation
   
   ### What is expected to happen?
   a successful build
   
   
   ### What does actually happen?
   when using `foreground` and `background` as explained in the docs:
   https://cordova.apache.org/docs/en/latest/config_ref/images.html#android
   I get:
   ```ENOENT: no such file or directory, open '/platforms/android/app/src/main/res/mipmap-port-hdpi-v26/ic_launcher.xml'```
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   <platform name="android">
     <icon background="res/icon/android/ldpi-background.png" density="ldpi" foreground="res/icon/android/ldpi-foreground.png" />
     <icon background="res/icon/android/mdpi-background.png" density="mdpi" foreground="res/icon/android/mdpi-foreground.png" />
     <icon background="res/icon/android/hdpi-background.png" density="hdpi" foreground="res/icon/android/hdpi-foreground.png" />
     <icon background="res/icon/android/xhdpi-background.png" density="xhdpi" foreground="res/icon/android/xhdpi-foreground.png" />
     <icon background="res/icon/android/xxhdpi-background.png" density="xxhdpi" foreground="res/icon/android/xxhdpi-foreground.png" />
     <icon background="res/icon/android/xxxhdpi-background.png" density="xxxhdpi" foreground="res/icon/android/xxxhdpi-foreground.png" />
   </platform>
   ```
   
   
   ### Environment, Platform, Device
   Linux x64 (kubuntu 18.04)
   Cordova 9.0.0 (Cordova lib 9.0.1)
   
   
   ### Version information
   
   Cordova 9.0.0 (Cordova lib 9.0.1)
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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


[GitHub] [cordova-android] breautek commented on issue #942: adaptive icons broken

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #942: adaptive icons broken
URL: https://github.com/apache/cordova-android/issues/942#issuecomment-612544002
 
 
   I'm unable to reproduce this.
   
   Here's what I did:
   I create a new cordova project, pasted your config inside the `config.xml` file. I grabbed some random icon pngs from another app of mine and pasted them into the proper directory and renaming them so the filenames match. Finally, then I ran `cordova build android`, which produced a successful build (no errors)
   
   Here is my environment
   
   Cordova:
   ```
   cordova -v
   9.0.0 (cordova-lib@9.0.1)
   
   cordova platform list
   Installed platforms:
     android 8.1.0
   ```
   
   Android SDK
   
   ```
   Android SDK Platform 28 (Android 9.0)
   Android SDK Build-Tools 29.0.2
   Android SDK Platform-Tools 29.0.6
   Android SDK Tools 26.1.1
   ```
   
   Are you able to provide a [minimal reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md)?

----------------------------------------------------------------
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


With regards,
Apache Git Services

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