Flutter Release apk is not working properly?

后端 未结 8 1017
深忆病人
深忆病人 2021-02-07 07:41

I had run this flutter build apk to release my App. Now I had build verison 2 of that.

Now again I want to release my version 2 App.To get the release apk

8条回答
  •  一向
    一向 (楼主)
    2021-02-07 08:10

    If your problem is that the flutter build (APK, bundle) isn't making API calls in a real device, this is because you need to add the Internet permission to Android Manifest before creating the release/build.

    By default, "internet use" will work fine on the emulator but not on a real device.

    To fix this, simply:

    Open the file "android/app/src/main/AndroidManifest.xml" and add the proper user-permission:

     
    ...
     
    ...
    
    

    And then create your build again.

提交回复
热议问题