error: package android.support.design.widget does not exist

半腔热情 提交于 2019-12-02 08:21:10

Floating action buttons are used for a special type of promoted action. so you need to add com.android.support:design library Include this line also in your build.gradle:

compile this dependencies in your build.gradle:

compile 'com.android.support:design:25.3.1'

Add following in gradle file :

compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
sumit

Floating action buttons are used for a special type of promoted action. so you need to add com.android.support:design library Include this line also in your build.gradle:

compile 'com.android.support:design:25.3.1'

FloatingActionButton is available in com.android.support:design library. If you are using any class that class related libraries you need to include in build.gradle, that's why you are getting error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!