Android whitelabeling build error


I have a problem with whitelabeling the 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

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, mixed mode)
Node JS: V14.15.1
Gradle Version: 6.6.1
Gradle Plugin Version: 4.1.1

Any additional Information


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

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