Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The import android.support.design.widget.FloatingActionButton cannot be resolved[Eclipse]

The import android.support.design.widget.FloatingActionButton cannot be resolved[Eclipse]

Project Built target-API 23

<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />

Added jar lib folder :

android-support-v7-appcompat.jar

appcompat-v7-23.1.1-sources.jar

design-23.1.1-sources.jar

like image 315
KS CS Avatar asked Jul 14 '16 11:07

KS CS


2 Answers

Cannot resolve class

android.support.design.widget.FloatingActionButton

use this one

com.google.android.material.floatingactionbutton.FloatingActionButton
like image 114
Sonu Kumar Avatar answered Oct 07 '22 10:10

Sonu Kumar


If you are using Android Studio -

then try to add this in your build.gradle(app level)

compile 'com.android.support:design:23.1.1' 
compile 'android-support-v7-appcompat:23.1.1'

as you are targeting to API 23

like image 20
malmling Avatar answered Oct 07 '22 11:10

malmling