Home > Blockchain >  Building Whitelabel Rocket Chat app results in build Failure
Building Whitelabel Rocket Chat app results in build Failure

Time:08-09

I am white labeling the Rocket Chat app for my server. I have everything working in the test environment. [e.g. yarn android] I am now ready to build an apk to push out to my server members. The issue I'm having is that running gradlew bundleRelease in the "/android" folder always results in an error saying,

Task :app:processBugsnagE2eFossReleaseManifest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processBugsnagE2eFossReleaseManifest'. > Bugsnag: Your AndroidManifest.xml is missing one or more of apiKey/versionCode/buildUuid/versionName/package, which are required to upload to bugsnag. apiKey=null

I'm really not sure what could be causing the problem as I have a bugsnag apikey declared in "gradle.properties". Any help would be much appreciated!

UPDATE: It turns out that I was using the wrong build command. Instead of using gradlew bundleRelease, I needed to using the command gradlew bundleExperimentalPlayRelease.

CodePudding user response:

Possible solutions:

  1. You have to use real bugsnag api key. If you don't have one then it is suggested to remove bugsnag.

  2. Try adding api key to your android/app/src/main/AndroidManifest.xml as mentioned in bugsnag docs and this issue.

<application ...>
  <meta-data android:name="com.bugsnag.android.API_KEY"
             android:value="your-api-key-here"/>
</application>

CodePudding user response:

UPDATE: It turns out that I was using the wrong build command. Instead of using gradlew bundleRelease, I needed to using the command gradlew bundleExperimentalPlayRelease.

  • Related