在 gradle plugin 的 zipalign 任务创建方法中
InstantRunBuildContext instantRunBuildContext = this.getScope().getVariantScope().getInstantRunBuildContext();
this.zipAlignTask = this.taskManager.createZipAlignTask(taskName, instantRunBuildContext, inputFile, outputFile);
this.assembleTask.dependsOn(new Object[]{this.zipAlignTask});
return this.zipAlignTask;
现在, assembleTask 为空,反过来会抛出
Caused by: org.gradle.api.InvalidUserDataException: A dependency must not be empty
我检查过早期版本,assembleTask 有实际的 assemble 任务