Android – custom res screens and res icons are replaced by default Cordova screens and icons

I am using Visual Studio tools from Apache Cordova

I have tested cli 6.4.0. Unfortunately, there are errors in res screens and res icons. If I use cli 6.3.1, this problem will disappear. To demonstrate it, I created a new project from scratch, only added Cordova plugin splashScreen (version 4.0.0) and replaced the original screen image with a custom screen image

When I try to debug using a physical Android device connected via USB, there are problems

During construction, the system will automatically create some additional folders / files (each splash configuration in my config.xml has a new folder / file), so in my case, I get these new folders / files:

> res / drawable-land-hdpi / screen. png@H_ 419_ 9@> res / drawable-land-ldpi / screen.png > res / drawable-land-mdpi / screen.png > res / drawable-land-xdpi / screen.png > res / drawable-port-hdpi / screen.png > res / drawable-port-ldpi / screen.png > res / drawable-port-mdpi / screen.png > res / drawable-port-xdpi / screen.png

PNG file reflects my content in RES / screens / Android folder

At the same time, build copies these new folders (as described above) to the platforms / Android / res folder. The problem is that the images in these folders are not the original images I selected in the project, but they are Cordova logo (the logo added by default when creating a new project)

resolvent:

Thank Elvis for pointing it out! Your error reporting has been turned off because it is a duplicate problem

The following is a link to the official error report: https://issues.apache.org/jira/browse/CB-12077

This is a GitHub pull request: https://github.com/apache/cordova-android/pull/343

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>