igorsantos07 opened a new issue, #1699:
URL: https://github.com/apache/cordova-android/issues/1699

   # Bug Report
   As [pointed more than a year 
ago](https://github.com/apache/cordova-android/issues/1461#issuecomment-1407510749),
 docs are telling us to create an inconsistent project state when trying to add 
a background color to adaptive icons.
   
   At the time, Erisu agreed it was a problem and would update docs, but it 
haven't happened so far.
   
   ## Problem
   This is actually quite bad, since you cannot understand what's going on from 
console output, not even with `--verbose`. Since that's all "hidden magic" from 
Cordova, it should be clearer when something internal can't be found because 
the related file was probably overridden by you or a plugin.
   
   I'm not sure if `cordova prepare` solves it once you rename the file, but I 
solved it by readding the platform. This is not a good experience.
   
   ### What is expected to happen?
   We should be able to follow docs and it should work.
   
   
   ### What does actually happen?
   [This 
page](https://cordova.apache.org/docs/en/11.x/config_ref/images.html#adaptive-icon-with-colors)
 tells us to override a file that Cordova creates internally, and then it 
breaks the build horribly in a very early step.
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   ```xml
   <resource-file src="res/values/colors.xml" 
target="app/src/main/res/values/colors.xml" />
   ```
   
   ### Version information
   cordova-android 12.0.1
   cordova cli 12.0.0 (cordova-lib 12.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.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

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


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

Reply via email to