Phearum
Phearum

Reputation: 63

Failed to compile values file while trying to run in android studio

I'm having a problem occurring when I was trying to run my app in android studio as shown in the screenshot. I'm new to Android Studio and Java. Thanks beforehand for your kindness1]1

Execution failed for task ':app:mergeDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable Resource compilation failed. Check logs for details.

Upvotes: 5

Views: 9573

Answers (1)

Zainal Fahrudin
Zainal Fahrudin

Reputation: 608

In my case, the mistake came from value with ' (single quote) character like this:

<item>Company's Social Media</item>

it's should be written with backslash:

<item>Company\'s Social Media</item>

Upvotes: 0

Related Questions