Problem
import android.support.design.widget.FloatingActionButton
Unresolved reference : design
Solve
Step 1)Open your build.grade in app level.
Step 2)
Add this lines into dependencies :
compile 'com.android.support:design:25.3.1'The text in red better if same with your version number of com.android.support:appcompat, for my case, it's com.android.support:appcompat-v7:25.3.1, so i use com.android.support:design:25.3.1.
Step 3)
After edited the file, don't forget to click Sync Now at top-right corner.
No comments :
Post a Comment