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

前端 未结 4 1308
天命终不由人
天命终不由人 2021-01-26 07:35

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

相关标签:
4条回答
  • 2021-01-26 08:15

    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'
    
    0 讨论(0)
  • 2021-01-26 08:16

    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'
    
    0 讨论(0)
  • 2021-01-26 08:20

    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'
    
    0 讨论(0)
  • 2021-01-26 08:38

    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.

    0 讨论(0)
提交回复
热议问题