# Error :app:mergeDebugResourceserror with gradle

**URL:** <https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548>\
**Category:** Plugins\
**Tags:** gradle, unreal-engine, Plugins, package-error, question\
**Created:** [August 27, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548 "2018-08-27T13:11:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatorice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatorice](https://forums.unrealengine.com/u/Fatorice)\
**Post date:** [August 27, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548/1 "2018-08-27T13:11:29Z")

</div>

Hello!

I’m trying to use this Plugin: [GitHub - PandoraEntertainment/Facebook: A plugin for Unreal Engine 4 that integrates the Facebook SDK.](https://github.com/PandoraEntertainment/Facebook) in my game, but when I try to package the game (plugin enabled), the package process crashes:

```
LogPlayLevel: :app:mergeDebugResourceserror: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: image must be at least 3x3 (1x1 image with 1 pixel border).
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: image must be at least 3x3 (1x1 image with 1 pixel border).
LogPlayLevel: error: image must be at least 3x3 (1x1 image with 1 pixel border).
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: image must be at least 3x3 (1x1 image with 1 pixel border).
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: top-left corner pixel must be either opaque white or transparent.
LogPlayLevel: error: found an invalid color.
LogPlayLevel: Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
LogPlayLevel: :app:mergeDebugResources FAILED
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: Execution failed for task ':app:mergeDebugResources'.
LogPlayLevel: > Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
LogPlayLevel: * Try:
LogPlayLevel: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
LogPlayLevel: * Get more help at https://help.gradle.org
LogPlayLevel: BUILD FAILED in 44s

```

I hope you guys can help me out!

Best regards from Germany 🙂

---

<div class="post-metadata">

**Author:** ![Fatorice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatorice](https://forums.unrealengine.com/u/Fatorice)\
**Post date:** [September 1, 2018, 8:00pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548/2 "2018-09-01T20:00:50Z")

</div>

For all those, who have the same problem. I fixed it by renaming all images in the Facebook-SDK.aar (under res/drawables-[XXX]) from: **[xxxxxxxxxxxxxxxx].9.png to [xxxxxxxxxxxxxxxx].png**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_564f6a11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_564f6a11](https://forums.unrealengine.com/u/anonymous_user_564f6a11)\
**Post date:** [September 25, 2019, 1:14pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548/3 "2019-09-25T13:14:59Z")

</div>

Hello, Please how can I locate this file?

---

<div class="post-metadata">

**Author:** ![Fatorice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatorice](https://forums.unrealengine.com/u/Fatorice)\
**Post date:** [September 25, 2019, 7:25pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548/4 "2019-09-25T19:25:24Z")

</div>

Hi!  
The Facebook-SDK.aar is in the thirdParty folder of the plugin or how ever you include it in your project. These .aar file can be opened like a normal archive file (e.g. with winrar). In this file (I can only speak for the FacebookSDK) you’ll find a res and some drawables folders. Inside of these drawables folders look for images with the .9.png ending and rename it to .png

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_564f6a11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_564f6a11](https://forums.unrealengine.com/u/anonymous_user_564f6a11)\
**Post date:** [September 25, 2019, 9:43pm UTC](https://forums.unrealengine.com/t/error-app-mergedebugresourceserror-with-gradle/432548/5 "2019-09-25T21:43:41Z")

</div>

Ohh thanks I’ll try that now. Are you on Discord? This is my Id: Ebube  
#6195
