API calls are not happning in flutter release APK

280 views Asked by At

I am developing an app in Flutter while developing the APP is working as excepted, but once generated a release APK (Android studio -> Build -> Flutter -> Build APK). After installing release APK, API calls are not happning

  • I have added internet permissions in manifest
  • Added a key store in the release build type.

Flutter release APK should work as like debug APK

1

There are 1 answers

0
Naik Rahul On

I think can you check your gradle file with property

Change from

signingConfig signingConfigs.debug

to

signingConfig signingConfigs.release

So your (build.gradle) will look like below

buildTypes { release { signingConfig signingConfigs.release } }