导入材料设计库android studio

时间:2022-10-18 02:46:16

I am trying to import the library.

我正在尝试导入库。

I added it to the gradle script

我将它添加到gradle脚本中

compile 'com.android.support:design:22.2.0'

If I open the project structure( control+shift+alt+s ) It is added on dependencies of the module. But If I try to write the import it doesnt appear.

如果我打开项目结构(control + shift + alt + s)它会添加到模块的依赖项中。但如果我尝试编写导入它不会出现。

There is a photo with the project dependencies, gradle script and the import now working

有一张照片包含项目依赖项,gradle脚本和导入功能

导入材料设计库android studio

1 个解决方案

#1


0  

I just tryied to add a TextInputLayout on the xml file, eliminated the snackbar and tryied to compile it, After no error, it works, Now I can import the snackbar

我只是尝试在xml文件上添加一个TextInputLayout,淘汰了snackbar并试图编译它,没有错误,它工作,现在我可以导入快餐栏

#1


0  

I just tryied to add a TextInputLayout on the xml file, eliminated the snackbar and tryied to compile it, After no error, it works, Now I can import the snackbar

我只是尝试在xml文件上添加一个TextInputLayout,淘汰了snackbar并试图编译它,没有错误,它工作,现在我可以导入快餐栏