Comments (12)
@ravikumar-n: Try the following rules...
-dontwarn okio.**
-keep class com.google.gson.** { *; }
-keepclassmembers enum * { *; }
-keepattributes Signature
-keepattributes *Annotation*
from sunshine-conversations-android.
Is this a regression?
I am unable to reproduce the problem by simply calling ConversationActivity.show(this);
Do you think you could provide more precise steps, or even a sample app?
Thanks!
from sunshine-conversations-android.
@jugarrit I just added a button to call ConversationActivity.show(this);
and it crashes.
I just notice it's working fine on android 5.1.0 but crashes on 4.1.1
from sunshine-conversations-android.
any update for this?
from sunshine-conversations-android.
Sorry! Still haven't had a chance to repro. I'll get back to you once I'm able.
from sunshine-conversations-android.
I can email you my repo link and maybe it will help you?
from sunshine-conversations-android.
Sure! Send it to [email protected]
from sunshine-conversations-android.
You obfuscated your code, right? The log quite similar, i don't know. But it good if you can try in debug mode to see more clearly. And (i'm not sure if i remember exactly) i think i got it before, the reason related to Gson some how.
from sunshine-conversations-android.
@jugarrit Got the same issue in production build, but when we disabled proguard and built, it works.
Project dependencies:
// Okhttp
compile 'com.squareup.okhttp3:okhttp:3.2.0'
// Gson
compile 'com.google.code.gson:gson:2.6.2'
// Smooch - Live chat
compile 'io.smooch:core:3.2.1'
compile 'io.smooch:ui:3.2.1'
compile 'com.google.android.gms:play-services-gcm:9.0.2'
The following proguard rules also doesn't help in resolving the issue:
## Smooch
-dontwarn okio.**
-keep class okio.**
-keep class com.google.gson.**
Device Info :
Dell Venue-7, Api-4.4.4
from sunshine-conversations-android.
Hi Julian,
The sample app in the git hub is working fine with Android Studio, but i'm facing some kind of issues while converting it as an eclipse project. The two things that i noticed:
-
Used the latest jars ( core-3.2.1.jar, ui-3.2.1.jar) and run the app in a device. When called this line ConversationActivity.show(this). app crashed!
-
Used some old versions (core-2.3.1.jar, ui-2.3.1.jar). This time crash not occurred but Showing an error message 'Could not connect to server.' Unable to send any messages.
from sunshine-conversations-android.
I will be adding proguard rules in the next release that could address this problem. I'll be closing this issue at that time and will re-open if it continues to occur.
from sunshine-conversations-android.
Just pushed a proguard fix in 4.0.5. Give it a shot!
from sunshine-conversations-android.
Related Issues (20)
- Latest Firebase HOT 6
- Duplicate class a.a found in modules core-9.0.0-runtime.jar HOT 1
- Android 12 support HOT 3
- Not finding 9.0.0 on jcenter? HOT 3
- Override Drawable Tint Color for Button HOT 1
- Logout CallBack ignored when Smooch not Initialized yet HOT 1
- latest firebase
- Crash by java.util.ConcurrentModificationException HOT 2
- App crash when i click `Share Localtion` HOT 1
- Region is not taken into account when requesting config
- Crash on MessageListAdapter HOT 10
- Problems with old versions of Smooch and not finding new 9.1.1 on building with gradle
- External Id Incorrectly Cached After Un-Successful Login Attempt.
- Crash NullPointerException Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference HOT 1
- io.smooch.ui.fragment.ConversationFragment.onCreateView
- io.smooch.ui.fragment.ConversationFragment.onCreateView does anybody know what is the problem?
- Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{....app/io.smooch.ui.widget.ImageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.BaseBundle.getString(java.lang.String)' on a null object reference
- Crash when sharing location. Upgrade play-service-location dependency
- Logo toolbar default does not set using the logo in smooch dashboard (same as iOS SDK)
- App crashes - java.util.ConcurrentModificationException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunshine-conversations-android.