check constraintlayout documentation
https://developer.android.com/reference/android/support/constraint/ConstraintLayout
Check Google code lab they have nice tutorial for constraint layout
Actually the issue might have been my android studio version. It used constraintlayout by default on design. When I changed it to linearlayout the errors dissapeared.
Обсуждают сегодня