您的位置:首页 > 大数据 > 人工智能

Gradle sync failed: Gradle DSL method not found: 'compile()'

2015-12-14 16:52 357 查看
今天在运行android studio 时出现的。

4000

解决方法:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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()
}

}

//添加如下
dependencies  {
apply plugin: 'application'
compile 'com.google.android.gms:play-services:8.3.+'
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: