android.support.design.widget.TextInputLayout could not be instantiated

replace

android.support.design.widget.TextInputLayout

with

com.google.android.material.textfield.TextInputLayout

If you uses AndroidStudio, you should not include android-support-design.jar. Instead, write like below in your build.gradle:

dependencies {
    ...
    compile 'com.android.support:design:24.0.0'
    ...
}

Edit: If this doesn't work you are probably using a different version. In Windows, go to:

[android-sdk]\extras\android\m2repository\com\android\support\design

On Mac:

sdk/extras/android/m2repository/com/android/support/design

This directory holds a number of version folders. Use the latest version on your build.gradle.