Cannot setup floating action buttons as class cannot be found (Android Studio)

前端 未结 7 1372
情书的邮戳
情书的邮戳 2021-01-02 07:39

So I am pretty new to android and I am trying to setup a floating action button with the Android Design Support Library using this guide in Android Studio.

My Projec

7条回答
  •  别那么骄傲
    2021-01-02 08:06

    You need the Library design, in the build.gradle file add:

    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.android.support:design:25.1.1'
    

    Then Sync the Gradle, build and Reresh

提交回复
热议问题