【发布时间】:2021-05-04 20:27:21
【问题描述】:
我正在打开这个 webview 项目并在导入项目时立即遇到错误。
未找到“app”的变体。检查构建文件以确保至少存在一个变体。
已经尝试过this,但没有帮助。我是android新手,请帮忙。
以下是build.gradle文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.41'
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.google.gms:google-services:4.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// 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
}
【问题讨论】: