2
我一直在爲一個應用程序工作了幾個星期,今天我添加了一個地圖活動,我已經寫了。我必須在我的項目中啓用multidex,因爲我的項目中的方法總數超過64k。 畢竟我得到這個錯誤java.util.zip.ZipException:重複條目:com/nineoldandroids/view/ViewHelper.class
Error:Execution failed for task ':waterManagement:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/nineoldandroids/view/ViewHelper.class
其實我曾在我的圖書館之一這個jar lib中,我試圖將其刪除,並使用其他方法,但我還是有這個錯誤。
我不知道,怎麼可能? 我的項目中沒有這個jar文件了。我關閉了應用程序,刪除了.idle和* .imi文件並再次打開它,但是我又遇到了這個問題。我讀了很多堆棧來解決它,其實我在gradle這個用這種方法,但什麼都沒有改變
configurations {
all*.exclude group: 'com.nineoldandroids', module: 'library'
}
我應該怎麼解決這個問題呢?