0
点赞
收藏
分享

微信扫一扫

Android: Using SVG in res leads to error: “The file name must end with .xml or .


错误类似:

: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附近


举报

相关推荐

0 条评论