当前位置 : 主页 > 编程语言 > java >

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

来源:互联网 收集:自由互联 发布时间:2022-08-10
错误类似: :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 fail


错误类似:

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


网友评论