Error:(51) A problem occurred evaluating project ':app'.
错误:(51)评估项目“app”出现问题。
Could not find method complie() for arguments [com.google.android.gms:play-services-gcm:7.5.0] on project ':app'.
无法找到方法complie()用于参数[com.google.android.gms:play-services-gcm:7.5.0] on project ':app。
How to fix this error?
如何修正这个错误?
Please have a look at build.gradle file
请看一下build。gradle文件
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "XYZ"
minSdkVersion 14
targetSdkVersion 22
versionCode 13
versionName "3.0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.squareup.okio:okio:1.4.0'
compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.akexorcist:RoundCornerProgressBar:1.2.0'
compile 'com.github.lzyzsd:circleprogress:1.1.0@aar'
compile 'com.android.support:cardview-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+'
compile 'joda-time:joda-time:2.7'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.google.android.gms:play-services-analytics:7.5.0'
complie 'com.google.android.gms:play-services-gcm:7.5.0'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile('com.crashlytics.sdk.android:crashlytics:2.4.0@aar') {
transitive = true;
}
}
1 个解决方案
#1
8
Replace
取代
complie 'com.google.android.gms:play-services-gcm:7.5.0'
with
与
compile 'com.google.android.gms:play-services-gcm:7.5.0'
The error is basically saying that gradle does not know what complie
is.
这个错误主要是说gradle不知道什么是complie。
#1
8
Replace
取代
complie 'com.google.android.gms:play-services-gcm:7.5.0'
with
与
compile 'com.google.android.gms:play-services-gcm:7.5.0'
The error is basically saying that gradle does not know what complie
is.
这个错误主要是说gradle不知道什么是complie。