我尝试使用Capacitor在Android上构建离子应用程序。但是,当我尝试在android studio上构建和运行应用程序时,出现了此错误。我没有任何Android Studio知识。错误:
在类型为org.gradle.initialization.DefaultSettings的设置'android'上找不到参数[build_al8rrgnflynwtjpadzojip71i $ _run_closure1 @ 68017a4f]的方法allprojects()。
build.gradle文件:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}