App bundle not working on release mode

617 views
Skip to first unread message

Kharis Alvarado Riveros

unread,
Jun 28, 2020, 2:32:15 AM6/28/20
to Flutter Development (flutter-dev)
Hi,
I published the first version of my app to the app store with an app bundle that I created using the "flutter build app bundle" command but when I try to download it and run it on my phone it crashes on the google sign in as if it wasn't on release mode. The curious thing is that if I just do "flutter build apk --release" an upload it as a version of my app to the play console it works perfectly but there are a bunch of devices that aren't compatible with that version.
So my question is, I am doing something wrong when I build the app bundle? because for the looks of it is like it's creating an app bundle on debug mode somehow. I have tried to use also "flutter build app bundle --release" and it gets me the same result.

If any one could help me it would be appreciated. 

Suzuki Tomohiro

unread,
Jun 28, 2020, 8:05:30 AM6/28/20
to Kharis Alvarado Riveros, Flutter Development (flutter-dev)
 it crashes on the google sign in as if it wasn't on release mode

Google sign-in works in debug mode. Would you elaborate a bit more?

ADVERTENCIA SOBRE CONFIDENCIALIDAD

Las opiniones expresadas en el presente mensaje no representan necesariamente la opinión oficial de La Universidad de Bogotá Jorge Tadeo lozano. La información contenida en este correo electrónico, incluyendo sus anexos, está dirigida exclusivamente a su destinatario y puede contener datos de carácter confidencial protegidos por la ley. Si usted no es el destinatario de este mensaje por favor infórmenos y elimínelo a la mayor brevedad. Cualquier retención, difusión, distribución, divulgación o copia de éste mensaje es prohibida y será sancionada por la ley.

Este mensaje ha sido sometido a programas antivirus. No obstante, La Universidad de Bogotá Jorge Tadeo lozano no asume ninguna responsabilidad por eventuales daños generados por el recibo y uso de este material, siendo responsabilidad del destinatario verificar con sus propios medios de la existencia de virus u otros defectos.

 WARNING ABOUT CONFIDENTIAL INFORMATION

The opinions expressed herein do not necessarily reflect the positions of the Universidad de Bogotá Jorge Tadeo Lozano. The information contained in this electronic mail and attachments is confidential and intended only for the use of the individual or entity to whom it is addressed and may have confidential data. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited and has legal repercussions. Therefore, if you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.

This message has been tested by antivirus software. Nonetheless, the Universidad de Bogotá Jorge Tadeo Lozano assumes no liability for any damages or loss of any kind that might arise from the use of, misuse of, or the inability to use the materials contained on this electronic message. It is the responsibility of the recipient to verify by his own means the presence of a virus or any other harmful components, defects or errors.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/a078f095-2333-4f9c-8bfa-d81ecfd1f8cbn%40googlegroups.com.

Kharis Alvarado Riveros

unread,
Jun 28, 2020, 10:48:42 AM6/28/20
to Flutter Development (flutter-dev)
I had a problem before an it was that google sign in only worked on debug mode when connected to my computer because when I built the apk it would build it on debug mode and not release mode, I corrected it to the "flutter build apk --release" and it built the apk perfectly. That was the reason why google sign in was only working, so I have the suspicion that it's doing the same thing with the app bundle because it crashes at the same point, I can download the app from the google play store it opens an shows every screen until it gets to the sign with google and at that point crashes and never opens again.

Suzuki Tomohiro

unread,
Jun 28, 2020, 11:24:51 AM6/28/20
to Kharis Alvarado Riveros, Flutter Development (flutter-dev)
> it crashes at the same point,

What was the error message?

Souvik Dutta

unread,
Jun 28, 2020, 12:57:39 PM6/28/20
to Suzuki Tomohiro, Kharis Alvarado Riveros, Flutter Development (flutter-dev)
I guess it might be because of code obfuscation incompatiblity. Probably app bundle does some kind of obfuscation that is not supported by firebase.

Souvik flutter dev

selan.d...@gmail.com

unread,
Oct 28, 2020, 4:03:48 AM10/28/20
to Flutter Development (flutter-dev)
Hi, I faced the same issue. Google and Facebook sign in is working on emulator, but when I build the release APK, it's not working in an actual device.If you find out a solution, please let me know. 
thanks
Reply all
Reply to author
Forward
0 new messages