首页 > 解决方案 > 在我的 gradle 中使用正确的材料设计库是什么,我尝试了不同的解决方案,它没有成功构建

问题描述

我正在尝试在我的应用程序中测试 FAB 概念,但它没有按照我得到的指导方针工作,可能是因为我不太了解它,请参阅下面的我的 gradle 文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "study.timmy.micah.materialdesignpractices"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}


dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:design:28.0.0-alpha1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso 
    core:3.0.2'

}

标签: androidmaterial-design

解决方案


推荐阅读