Android whitelabeling build error

Description

Hello,
I have a problem with whitelabeling the rocket.chat app. I used the doc but when I try to build the app in the playRelease variant I get the error:

Execution failed for task ':app:processBugsnagPlay-releaseManifest'.
> Could not get unknown property 'manifestOutputDirectory' for task ':app:processPlayReleaseManifest' of type com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest.

Maybe someone can help me.

Setup Information

Repository: Revision: e1b774a7 Branch: Single-Server
Android Studio Ver: 4.1.1
SDK: Android 11.0 Rev.3
Yarn: 1.22.5
Java: OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
Node JS: V14.15.1
Gradle Version: 6.6.1
Gradle Plugin Version: 4.1.1

Any additional Information

Hi,

I had this issue too. Fixed it by changing the required bugsnag-android-gradle-plugin in gradle.build from 4.+ to 5.+

Discovered that there was a bug fixed in v 5 onwards.