javaandroidgoogle-fit-sdkgoogle-fit-api

How to build Android app in release mode? GoogleFit: RESULT_CANCELED


Can anyone tell me how to build my app in release mode? I'm having issues getting to the permissions screen on my android (java) application, I keep getting GoogleFit: RESULT_CANCELED error and then activity closes.

Another user suggested building in release mode, my SDK is generated for release and I have updated my gradle files but nothing is working.

I have asked for help a few times since yesterday with no luck so if anyone can help that would be appreciated!

Link to my other question with problem in detail


Solution

  • I'm assuming you are using Android studio. To build the app in release mode. You will need to find a window called Build Variants which should be at the lower left screen of you workspace. And you will see the modules you created for your APP. And just change Build Variants from debug to release.

    Here is the official document link for your reference Build and Run your App.