【发布时间】:2018-08-13 11:42:41
【问题描述】:
我不知道究竟是什么导致了这个错误,但我到处搜索,没有什么能解决它,它变得更糟了!当我构建我的应用程序时,它显示 AAPT2 错误:检查日志以了解详细信息。看截图。
我的项目 build.gradle 文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// classpath 'com.android.tools.build:gradle:3.2.0-alpha13'
// classpath 'com.android.tools.build:gradle:3.1.4'
//classpath 'com.android.tools.build:gradle:3.2.0-alpha11'
// 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
}
还有我的 app build.gradle 文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// classpath 'com.android.tools.build:gradle:3.2.0-alpha13'
// classpath 'com.android.tools.build:gradle:3.1.4'
//classpath 'com.android.tools.build:gradle:3.2.0-alpha11'
// 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
}
我的论文正在进行中,这给我带来了一个很大的问题。请帮帮我!
【问题讨论】:
标签: android-studio