question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: The file name must end with .xml or .png

See original GitHub issue

Trying to build onto Android device and I get the error below. Anyone know how this can be fixed?

Execution failed for task ':app:mergeDebugResources'.
> /path/to/project/android/app/src/main/res/drawable-mdpi/app_shared_assets_icons_acknowledge.svg: Error: The file name must end with .xml or .png

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:24
  • Comments:18

github_iconTop GitHub Comments

39reactions
ghostcommented, May 2, 2019

android.disableResourceValidation=true

17reactions
adamskicommented, May 2, 2018

gradle.properties (Project Properties)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The file name must end with .xml or .png - Stack Overflow
Android accepts only .png, .jpg, .gif and .xml files as drawable resources. If you have file .db file then put that file in...
Read more >
Error: The file name must end with .xml or .png #239 - GitHub
Trying to build onto Android device and I get the error below. Anyone know how this can be fixed? Execution failed for task ......
Read more >
Android "The file name must end with .xml". But its a PNG
I am trying to build an Android APK. This works fine, if I do not sign the packet. But when I want to...
Read more >
Android Studio res file error "The file name must end with .xml ...
Android Studio res file error "The file name must end with .xml" when trying to run mediapipe exampl.
Read more >
Build failed with "The file name must end with .xml or .png"
Hi! Since a few Days my build failed with the following errors: UATHelper: Packaging (Android (ETC1)): ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found