i\'m new to android. when i want to import a project into my android studio it complain about this error that : error package android.support.design.widget does
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'
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'
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.