【问题标题】:Add Material Design Library In Android Studio [duplicate]在Android Studio中添加材料设计库[重复]
【发布时间】:2016-12-18 21:07:54
【问题描述】:

我对 Android Studio 非常陌生,我不明白如何使用 Android 设计库,有人可以帮我指导每一段吗?请

【问题讨论】:

    标签: android android-layout android-studio android-gradle-plugin android-library


    【解决方案1】:

    在你的 build.gradle 中,添加如下依赖:

    dependencies {
    ...
    compile 'com.android.support:design:25.1.0'
    ... 
    }
    

    同步您的项目并开始使用它。

    here

    【讨论】:

    • 所以我写了这段代码,我重建了项目,我就完成了,对吧?
    • 是的。如果您稍后遇到困难,请在此处评论
    • 非常感谢!
    • 好吧,我实际上发现了一行说:compile 'com.android.support:appcompat-v7:24.2.1',所以我使用 24.2.1 即使是设计的,但之前有几行它说:buildToolsVersion“24.0.3”。我做得对吗?
    • 是的,当然。只需对所有 ''com.android.support.*" 类型库使用相同的版本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-04
    • 2015-12-23
    • 2015-02-06
    • 2015-06-24
    • 2020-02-09
    • 2015-04-17
    • 1970-01-01
    相关资源
    最近更新 更多