When I clicked on " Connect a device" , the app was always stopped. I changed in device_name.xml <android.support.constraint.ConstraintLayout // other things </android.support.constraint.ConstraintLayout> TO <TextView > </TextView>