Skip to content

Commit

Permalink
解决因splits导致AndroidManifest分配坑位失败
Browse files Browse the repository at this point in the history
  • Loading branch information
247321453 committed Apr 15, 2019
1 parent 9c885d7 commit 47772a0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ public class Replugin implements Plugin<Project> {
//3.0.0之前,直接使用
manifestFile = file
}

if (manifestFile == null || !manifestFile.exists()) {
def abi = output.filters.find { it.filterType == OutputFile.ABI }?.identifier
if (abi != null) {
manifestFile = new File(file, "${abi}/AndroidManifest.xml")
}
}

//检测文件是否存在
if (manifestFile != null && manifestFile.exists()) {
println "${AppConstant.TAG} handle manifest: ${manifestFile}"
Expand Down

0 comments on commit 47772a0

Please sign in to comment.