在的zipalign任務創建方法從gradle這個插件assembleTask採用的是Android gradle這個插件的2.2-α-2的勺子插件
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有實際的組裝任務
downvote什麼? – WenChao
哪個操作系統使用? –
os x,最新的android studio 2.2預覽版1 – WenChao