简体   繁体   中英

My Signed APK Crash when i read or write data from Firebase Android Studio

Basically i am using Both Firestore and Firebase realtime in my App. Once user signup in my app i saved user UID in realtime and than my recycler view fetch some category icon and name from my Firestore. Everything is working fine when i test my app on emulator directly from Android Studio but when i generate Signed APK and when i install this app on mobile or emulator it show error when i signup the user.

Authentication System works fine user Email and UID is created Sucessfully in Firebase Auth system but realtime database not collecting data from my App Model classes.

I hope you will understand my problem

在此处输入图像描述

I solved this problem by adding these lines in my app gradle build (Build Types) Section:

shrinkResources false
    minifyEnabled false
    signingConfig signingConfigs.debug

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM