App crashes | The place for Zendesk users to come together and share
Skip to main content
Question

App crashes

  • April 20, 2022
  • 3 replies
  • 10 views

Banki

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fastcash.app/zendesk.support.guide.ViewArticleActivity}: android.view.InflateException: Binary XML file line #68: Binary XML file line #68: Error inflating class zendesk.support.guide.ArticleVotingView
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:6718)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

3 replies

  • Product Manager
  • April 20, 2022

Hi Banki, I've moved this post to the Zendesk SDKs topic. The SDK team there will be happy to assist you further.

Thanks and have a great day,

Will 


Mick O'Donnell
Forum|alt.badge.img

Hi Banki,

We would need clear information on the SDK that you are integrating with, and details on any specific of your app that could be helpful.


Banki
  • Author
  • April 20, 2022
SDK:

implementation group: 'com.zendesk', name: 'support', version: '5.0.3'
implementation group: 'com.zendesk', name: 'messaging', version: '5.2.0'
implementation group: 'com.zendesk', name: 'chat', version: '3.3.0'
implementation group: 'com.zendesk', name: 'answerbot', version: '3.0.2'




ChatConfiguration chatConfiguration = ChatConfiguration.builder().withAgentAvailabilityEnabled(false)
.withOfflineFormEnabled(true)
.withPreChatFormEnabled(false)
.build();
ProfileProvider profileProvider = Objects.requireNonNull(Chat.INSTANCE.providers()).profileProvider();
VisitorInfo visitorInfo = VisitorInfo.builder()
.withName(AccountManager.getInstance().getUser().first_name + "" + AccountManager.getInstance().getUser().last_name)
.withEmail(AccountManager.getInstance().getUser().emailId)
.withPhoneNumber(AccountManager.getInstance().getUser().phone)
.build();
profileProvider.setVisitorInfo(visitorInfo, null);

viewBinding.supportView.setOnClickListener(v -> {
Engine answerBotEngine = AnswerBotEngine.engine();
Engine supportEngine = SupportEngine.engine();
Engine chatEngine = ChatEngine.engine();
MessagingActivity.builder()
.withEngines(answerBotEngine, supportEngine, chatEngine)
.show(SupportActivity.this);

});