Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The following classes could not be found: - android.support.design.widget.TextInputLayout

I am Learning tutorial for Android Floating Label Edit Text but I get error as shown in the Image. Please help me out from this

This is Tutorial which i am following.

Please help me out from this error. Rebuild is not solving the problem.

like image 668
theone1one Avatar asked Jul 08 '15 06:07

theone1one


2 Answers

Does your build.gradle file contain the line below?

compile 'com.android.support:design:22.2.0'
like image 137
leb1755 Avatar answered Oct 31 '22 23:10

leb1755


You must include support libraries (like the ones below), yet this is sometimes not sufficient.

compile ("com.android.support:support-v4:23.3.0")
compile ("com.android.support:appcompat-v7:23.3.0")
compile ("com.android.support:support-annotations:23.3.0")
compile ("com.android.support:recyclerview-v7:23.3.0")
compile ("com.android.support:design:23.3.0")

Examine your layout in design view, and click on Show Exception

layout design view

This answer will help if you have the following problem:

You need to use a Theme.AppCompat theme (or descendant) with the design library.

In your Manifest file, include in your application declaration

android:theme="@style/Theme.AppCompat"

Rebuild and your problem should be solved.

like image 26
tony gil Avatar answered Nov 01 '22 01:11

tony gil