错误类似:
:app:mergeDebugResources :app:mergeDebugResources FAILED /home/petergriffin/folder1/another-app/MyAwesome-App/app/src/main/res/drawable-hdpi/logo.svg Error:Error: The file name must end with .xml or .png Error:Execution failed for task ':app:mergeDebugResources'. > /home/petergriffin/folder1/another-app/MyAwesome-App/app/src/main/res/drawable-hdpi/logo.svg: Error: The file name must end with .xml or .png Information:BUILD FAILED 添加:android.disableResourceValidation=true 至gradle.properties 该文件在settings.gradle附近
解决SVG图标合并资源错误
本文介绍了一种常见Android开发中遇到的问题,即在尝试合并包含SVG格式的图标资源时出现错误提示,指出文件名必须以.xml或.png结尾。文中提供了解决方案,通过在gradle.properties文件中添加特定配置来禁用资源验证。
210

被折叠的 条评论
为什么被折叠?



