0
對不起,我的英語。我不明白爲什麼我不能導入項目到我的android工作室。我有文件構建gradle這個無法在Android工作室導入項目(無法找到方法編譯()參數)
buildscript {
repositories {
jcenter()
}
dependencies {
compile 'com.android.tools.build:gradle:2.2.2'
classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
,但我有錯誤:
Error:(9, 0) Could not find method compile() for arguments [com.android.tools.build:gradle:2.2.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Open File
爲什麼它是什麼意思?
你是對的,謝謝!問題出在一個圖書館 – g71132