Build failed after upgrading Gradle to version 5.6.4
After upgrading Android Gradle plugin to version 3.6.0 and Gradle to version 5.6.4 a build error occurs:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/home/username/.gradle/caches/transforms-2/files-2.1/f4e760f55cdecc03c707f67f08b08f3d/jetified-video-android-5.1.0/res/values/values.xml:13:5-17:25: AAPT: error: resource attr/overlaySurface (aka twilio.flutter.programmable_video_example:attr/overlaySurface) not found.
Until Twilio solves this issue the workaround is to create a file named attrs.xml to path
android/app/src/main/res/values/ with the following content:
<?xml version="1.0" encoding="utf-8"?>
<!-- this file is necessary until the bug below is solved! -->
<!-- https://github.com/twilio/video-quickstart-android/issues/479 -->
<resources>
<attr name="overlaySurface" format="boolean" />
</resources>