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

2

2 Answers

Cannot resolve class

android.support.design.widget.FloatingActionButton

use this one

com.google.android.material.floatingactionbutton.FloatingActionButton
1

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

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest