livechat / chat-window-android

LiveChat mobile chat window for Android
https://developers.livechatinc.com/mobile/android/
MIT License
23 stars 28 forks source link

Didn't find class "com.livechatinc.inappchat.R$layout" #54

Closed sorunokoe closed 3 years ago

sorunokoe commented 3 years ago

Hi there, Following the guide, but have a crash:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.latoken.wallet, PID: 29257
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/livechatinc/inappchat/R$layout;
        at com.livechatinc.inappchat.ChatWindowFragment.onCreateView(ChatWindowFragment.java:81)

My code:

 Intent intent = new Intent(this, com.livechatinc.inappchat.ChatWindowActivity.class);
        Bundle config = new ChatWindowConfiguration.Builder()
                .setLicenceNumber("LICENCE_NUMBER")
                .setVisitorEmail("EMAIL")
                .setVisitorName("NAME")
                .setCustomParams(customParamsMap)
                .build()
                .asBundle();
        intent.putExtras(config);
        startActivity(intent);
nomyzs commented 3 years ago

Hello @sorunokoe ! Thanks for reaching out. We have found some problems in versions v2.1.3 and v2.1.4. However all seems good in version v2.1.5. Could you check if you still having this issues?