Manifest merger failed with multiple errors, see ?Error:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed with multiple errors, see logs
引入第三方library时遇到的,直接检查自己的主工程和第三方工程中的AndroidManifest是否有冲突的地方
unspecified on project app resolves to an APK archive which is not supported
出现该问题unspecified on project app resolves to an APK archive which is not supported as a compilation dependency的情形可能是:创建了两个Module,其中一个Module依赖另一个Module而导致了出现该问题;
如果在Android Studio中,有ModuleA和ModuleB,我们希望ModuleA依赖ModuleB,运行时候可能会出现该问题,查看被依赖的ModuleB的build.gradle,里面可以看到:
apply plugin: 'com.android.application'
更改为
apply plugin: 'com.android.library'
引入第三方包时出现,检查第三方包是否被编译成了app而无法被依赖
同一app出现多个入口,如果不是自己的AndroidManifest文件中有两个程序入口则检查引用库的AndroidManifest是否也有入口,去掉即可
解决Android Studio Gradle 错误 编码GBK的不可映射字符
在出现该问题的module的build.gradle下添加
tasks.withType(Compile) {
options.encoding ="UTF-8"
}
或者Gradle2.0+环境下需将Compile改为JavaCompile
tasks.withType(JavaCompile) {
options.encoding ="UTF-8"
}
Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
jackOptions{
enabled true
}
compileOptions{
sourceCompatibility org.gradle.api.JavaVersion.VERSION_1_8
targetCompatibility org.gradle.api.JavaVersion.VERSION_1_8
}
非法字符:"\ufeff"
编码问题: 大概就是: 带BOM的UTF-8」和「无BOM的UTF-8」, Android Studio需要的是后者
把文件转成无BOM的UTF-8就OK了 (比如用EditPlus)