java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception:AAPT error:
检查日志以了解详细信息。
解决方法*
答案 0 :(得分:0)
大多数情况下,它与classpath一起发生。尝试检查gradle类路径
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
答案 1 :(得分:0)
添加您的build.gradle文件
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha18'
}
}
allprojects {
repositories {
google() // important!
jcenter()
}
}