Closed Karthikg206 closed 6 years ago
Did you initialize the app like in the README?
Do you have the latest release?
--
Baptiste Jamin CEO, Crisp https://crisp.im/ - Connect your customers to your team.
On 19 Jan 2018, at 13:46, Karthikg206 notifications@github.com wrote:
Fatal Exception: java.lang.RuntimeException: Unable to create application com.example.android.SampleApplication: java.lang.NullPointerException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6320) at android.app.ActivityThread.access$1800(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by java.lang.NullPointerException at com.anupcowkur.reservoir.Reservoir.get(Reservoir.java:178) at im.crisp.sdk.stores.ContextStore.restore(SourceFile:54) at im.crisp.sdk.stores.ContextStore.(SourceFile:33) at im.crisp.sdk.SharedCrisp.(SourceFile:39) at im.crisp.sdk.SharedCrisp.initialize(SourceFile:49) at im.crisp.sdk.Crisp$Builder.initialize(SourceFile:73) at com.example.android.SampleApplication.onCreate(SampleApplication.java:71) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1036) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6317) at android.app.ActivityThread.access$1800(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/crisp-im/crisp-sdk-android/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AA04wxyyeMNqQsqAw0E9gbjzKrTBjJe4ks5tMI6UgaJpZM4RkbWu.
@mywaystar yes,we have implementation 'im.crisp:crisp-sdk:0.0.17'
and we use this in Application onCreate:
Crisp.with(this) .setWebsiteId("websiteId") .initialize(); Crisp.getChat().setPrimaryColor("#d40f47"); Crisp.getChat().setPrimaryDarkColor("#c00e40");
Latest release is 0.1.1
@mywaystar ok we will update but this build in live could you solve?
@mywaystar in latest version how can i customize like primary color
Baptiste Jamin CEO, Crisp https://crisp.im/ - Connect your customers to your team.
On 19 Jan 2018, at 14:08, Karthikg206 notifications@github.com wrote:
@mywaystar https://github.com/mywaystar in latest version how can i customize like primary color
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/crisp-im/crisp-sdk-android/issues/14#issuecomment-358961805, or mute the thread https://github.com/notifications/unsubscribe-auth/AA04w47yxItirMMRE6puzLfHq1uDzlvoks5tMJPngaJpZM4RkbWu.
Fatal Exception: java.lang.RuntimeException: Unable to create application com.example.android.SampleApplication: java.lang.NullPointerException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6320) at android.app.ActivityThread.access$1800(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by java.lang.NullPointerException at com.anupcowkur.reservoir.Reservoir.get(Reservoir.java:178) at im.crisp.sdk.stores.ContextStore.restore(SourceFile:54) at im.crisp.sdk.stores.ContextStore.(SourceFile:33)
at im.crisp.sdk.SharedCrisp.(SourceFile:39)
at im.crisp.sdk.SharedCrisp.initialize(SourceFile:49)
at im.crisp.sdk.Crisp$Builder.initialize(SourceFile:73)
at com.example.android.SampleApplication.onCreate(SampleApplication.java:71)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1036)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6317)
at android.app.ActivityThread.access$1800(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120).