我在项目gradle文件中收到此警告:
警告:(16,5)'buildTypes'不能应用于'(groovy.lang.Closure <com.android.build.gradle.internal.dsl.BuildType>)'
我的buildTypes部分是:
    buildTypes {
        debug {
            debuggable true
        }
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
        }
    }
我目前正在使用Android Studio 1.1.0,compileSdkVersion 22,buildToolsVersion 22.0.0和targetSdkVersion 22.我尝试退回到21但仍然收到警告.
导致此警告的原因是什么?
我创建一个简单的项目,然后右键单击该项目,然后我使用该make mudole app选项.现在我有两个build.gradle文件夹:1- build.gradle:project My Application.2- build.gradle: Mudole app.第一个build.gradle如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.android.library'
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
第二个Build.gradle文件夹如下:
 apply plugin: 'com.android.application'
android {
    compileSdkVersion …我使用以下库将材料设计添加到我的android项目中
https://github.com/navasmdc/MaterialDesignLibrary
但在将其作为模块导入后,我收到以下错误.我该如何解决呢?
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.