android - Smooch crashes when I press the button -
this error get:
05-09 11:55:10.559: e/androidruntime(15809): java.lang.nosuchfielderror: no static field smooch_inputtext of type in class lio/smooch/ui/r$id; or superclasses (declaration of 'io.smooch.ui.r$id' appears in /data/app/nl.hgrams.passenger-1/base.apk) 05-09 11:55:10.559: e/androidruntime(15809): @ io.smooch.ui.fragment.conversationfragment.oncreateview(unknown source) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragment.performcreateview(fragment.java:1974) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1067) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1252) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.backstackrecord.run(backstackrecord.java:742) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragmentmanagerimpl.execpendingactions(fragmentmanager.java:1617) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragmentcontroller.execpendingactions(fragmentcontroller.java:339) 05-09 11:55:10.559: e/androidruntime(15809): @ android.support.v4.app.fragmentactivity.onstart(fragmentactivity.java:602) 05-09 11:55:10.559: e/androidruntime(15809): @ io.smooch.ui.conversationactivity.onstart(unknown source) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.instrumentation.callactivityonstart(instrumentation.java:1237) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activity.performstart(activity.java:6268) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activitythread.performlaunchactivity(activitythread.java:2379) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2476) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activitythread.-wrap11(activitythread.java) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activitythread$h.handlemessage(activitythread.java:1344) 05-09 11:55:10.559: e/androidruntime(15809): @ android.os.handler.dispatchmessage(handler.java:102) 05-09 11:55:10.559: e/androidruntime(15809): @ android.os.looper.loop(looper.java:148) 05-09 11:55:10.559: e/androidruntime(15809): @ android.app.activitythread.main(activitythread.java:5417) 05-09 11:55:10.559: e/androidruntime(15809): @ java.lang.reflect.method.invoke(native method) 05-09 11:55:10.559: e/androidruntime(15809): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726) 05-09 11:55:10.559: e/androidruntime(15809): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616)
this how init in application class:
public void initsmooch() { smooch.init(this, "c1th4qtm5o1qlm92esacfc6ow"); userrecord userrecord = psuserservice.getinstance(pslocationcenter.this).getmyuser(); if(userrecord != null) { user.getcurrentuser().setfirstname(userrecord.getfirst_name()); user.getcurrentuser().setlastname(userrecord.getlast_name()); user.getcurrentuser().setemail(userrecord.getemail()); final map<string, object> customproperties = new hashmap<>(); customproperties.put("country", userrecord.getcountry()); customproperties.put("language", userrecord.getlanguage()); customproperties.put("id", userrecord.getid()); customproperties.put("email", userrecord.getemail()); user.getcurrentuser().addproperties(customproperties); } }
and used version:
compile 'io.smooch:core:latest.release' compile 'io.smooch:ui:latest.release'
my button this:
conversationactivity.show(this);
a new version of sdk has been released (2.3.1) fixes problem.
Comments
Post a Comment