I want to import design library in androidx 29 version(latest version)

我与影子孤独终老i 提交于 2020-01-24 01:57:13

问题


Below image clarify my question. I was try multiples of times to import design library in android studio lastest version 29 (android x) but library does'nt work kindly tell me the design library for androidx 29.


回答1:


You can use : -

implementation 'com.google.android.material:material:1.0.0' library in androidx for design.




回答2:


The library androidx.design:design:1.0.0 doesn't exist.
You have to use the Material Components library.

Material Components for Android is a drop-in replacement for Android's Design Support Library.

Add one of these in your build.gradle:

implementation 'com.google.android.material:material:1.1.0-beta01'  //beta
implementation 'com.google.android.material:material:1.0.0'  //stable


来源:https://stackoverflow.com/questions/58538697/i-want-to-import-design-library-in-androidx-29-versionlatest-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!