apk not working accordingly as in debug mode

91 Views Asked by At

I just build my apk to test it on the phone but I got some weird errors like

  1. the dialogue box that opened on the onTap method stopped working but before or in the debug mode it is still working.
  2. the image picker has the same problem that it is not working in apk but it is working when running through android studio.

does anyone know any reason behind this is why this is happening?

it would be really helpful if you could help.

1

There are 1 best solutions below

1
Mimu Saha Tishan On

For some design issue it may occure in release mode. Where in debug mode we get some warning and ignore that but in release mode without solving those design issue it won't run smoothly. try to find if there has any design issue like

'Incorrect use of ParentDataWidget.'

So solution is

Run you app in debug mode and check logs, I am sure you will find the problem there.