The app crashes in release mode
See original GitHub issueHello Team,
The app work well in debug mode. But I have tried to build the app in release mode. The app crashes when updating the user.
java.lang.NullPointerException: Attempt to invoke virtual method 'org.greenrobot.greendao.AbstractDao org.greenrobot.greendao.AbstractDaoSession.getDao(java.lang.Class)' on a null object reference
at sdk.chat.core.dao.DaoCore.fetchEntityWithEntityID(Unknown Source:2)
at sdk.chat.core.base.AbstractCoreHandler.currentUser(Unknown Source:28)
at sdk.chat.core.session.ChatSDK.currentUser(Unknown Source:4)
proguard-rules.pro
-keep class sdk.chat.core.** { *; }
-keep class org.greenrobot.** { *; }
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
public static java.lang.String TABLENAME;
}
-keep class **$Properties { *; }
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDaoSession { *; }
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.google.gms:google-services:4.3.3'
Android Studio 4.0
Pls help me to fix it!
Thanks, John
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
App crashes when select Release mode but in debug mode ...
android - App crashes when select Release mode but in debug mode works perfectly - Stack Overflow. Stack Overflow for Teams – Start...
Read more >App crashes in release mode #954 - GitHub
When it's built, and when trying to use the camera, the apk crashes every time. This works perfectly on debug mode.
Read more >Crash when run in Release mode? - Qt Forum
Try running your Release executable under debugger. When it crashes inside debugger you still get trace back. If you are lucky, and it...
Read more >app crashes at launch as release b… | Apple Developer Forums
When you install the app to the device on debug mode or release mode through Xcode, it's normal and will not encounter this...
Read more >Android App suddenly crashes when compiling in Release ...
Hi. My App was working fine when build to release mode, and both when downloading from Google play store or from a Android...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed in the latest version. You can also add the Proguard rules to your app’s proguard file:
Any update on this @bensmiley ?