I installed Android Studio yesterday, and after battling multiple java and other errors, I have come to an error that I cannot seem to fix. I have not added anything or done
That error pops up if any of the following things happen :
You don't have the latest SDK versions installed. Make sure you have the right versions. You need to have Android M installed to use the floating action button. (Use the Android SDK Installer)
Your gradle dependencies are wrong.
If you are new to Android Studios, chances are the problem is both 1 and 2.
For the 2nd issue, go to your gradle file and put this in :
dependencies {
compile 'com.android.support:design:23.0.0'
}
That should fix the issue.