Chat Application using Quickblox (Bugs)

I have saw one QUICKBLOX chat app tutorial on the Internet and i have done it. its performing well in my emulators but it displays “Unfortunately your application has been stopped” and quits in my physical device . Is there any solution for that. PLEASE RECTIFY THE PROBLEM.

My Logcat shows

Process: com.package.name, PID: 17931
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.package.name/com.package.name.ChatDialogActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.FloatingActionButton at com.package.ChatDialogActivity.onCreate(ChatDialogActivity.java:46)
at android.app.Activity.performCreate(Activity.java:6033)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2397) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1310) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5268) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372)

This is my oncreate function.

    @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Below is the (ChatDialogActivity.java:46)
    setContentView(R.layout.activity_chat_dialog);


    createSessionForChat();

    lstChatDialogs = (ListView)findViewById(R.id.lstChatDialogs);

    lstChatDialogs.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            QBChatDialog qbChatDialog = (QBChatDialog)lstChatDialogs.getAdapter().getItem(position);

            Intent intent = new Intent(ChatDialogActivity.this, ChatMessageActivity.class);
            intent.putExtra(Common.DIALOG_EXTRA, qbChatDialog);
            startActivity(intent);
        }
    });