There is an error in the resource XML and you should troubleshoot each XML.
If you are prompted to Gradle related errors, you need to modify the system-level Build.gradle and program-level build.gradle, such as the latter cannot be missing:
dependencies {
Compile Filetree (include: [' *.jar '], dir: ' Libs ')
Testcompile ' junit:junit:4.12 '
Compile ' com.android.support:appcompat-v7:21.0.3 '
}
Project configuration Portal: File->project structure--moules--
Modifying it is equivalent to modifying the program-level Build.gradle
Gradle hints Chinese garbled, such as Chinese comments.
Add the following code under Build.gradle under Project to resolve
Tasks.withtype (Compile) {
options.encoding = "UTF-8"
}
The gradle2.0+ environment needs to change the compile to Javacompile
Tasks.withtype (javacompile) {
options.encoding = "UTF-8"
}
Duplicate files copied in APK Meta-inf/notice.txt
Android {
packagingoptions {
Exclude ' meta-inf/license.txt '
}
}
: App:transformresourceswithmergejavaresfordebug FAILED