Hey there
In order to produce a release build, you will need to complete the GOING LIVE section of Android SDK setup guide. Where you will need to complete this form to get permissions to use the Google Health Connect api in production.
You will need to:
- Specify which data types you intend to read from Health Connect
- For each permission which you are not using, add the following lines to your
AndroidManifest.xml
<uses-permission android:name="android.permission.health.READ_HEART_RATE" tools:remove="true"/>
Once these steps are completed, the build should run without crashing. Hope this helps!