0
我試圖運行我的應用程序,並得到這個錯誤,請幫助我。錯誤:(22,0)找不到方法android()參數
// 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:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android {
signingConfigs {
config {
}
}
buildToolsVersion '24.0.2'
compileSdkVersion 24
buildTypes {
buildType {
signingConfig signingConfigs.config
}
}
}
dependencies {
}
錯誤:
Error:(22, 0) Could not find method android() for arguments [[email protected]] on root project 'Recipe App' of type org.gradle.api.Project.
歡迎StackOverflow上,這僅僅是一個代碼。你能否介紹一下這一點 – IsuruAb