【问题标题】:I want to import design library in androidx 29 version(latest version)我想在 androidx 29 版本(最新版本)中导入设计库
【发布时间】:2019-10-24 09:49:56
【问题描述】:

下图澄清了我的问题。我曾多次尝试在 android studio 最新版本 29 (android x) 中导入设计库,但库不起作用请告诉我 androidx 29 的设计库。

【问题讨论】:

    标签: android android-support-library androidx material-components material-components-android


    【解决方案1】:

    androidx.design:design:1.0.0 不存在
    您必须使用Material Components library

    Material Components for Android 是 Android 设计支持库的直接替代品。

    在您的 build.gradle 中添加其中之一:

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

    【讨论】:

    • 我想用这个设计库,有没有设计库?
    • @HaiderShah Material Components 库新的官方设计库:Material Components for Android 是 Android 设计支持库的直接替代品 .
    【解决方案2】:

    你可以使用:-

    在 androidx 中实现 'com.google.android.material:material:1.0.0' 库以进行设计。

    【讨论】:

    • 不能在androidx中使用implementation 'com.google.android.material:material:1.0.0'库进行设计的答案是错误。你必须使用它!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 2020-07-10
    • 2020-10-22
    相关资源
    最近更新 更多