2015-12-05 34 views
6

我無法弄清楚爲什麼這個錯誤就要
這裏充滿錯誤錯誤:執行失敗的任務「:應用程序:transformClassesWithMultidexlistForDebugAndroidTest」

Error:Execution failed for task   
':app:transformClassesWithMultidexlistForDebugAndroidTest'. 
> java.io.IOException: The output jar is empty. Did you specify the proper  
    '-keep' options? 

我gradle這個機器人項目沒有「androidTest」所以我手動創建和測試文件夾這裏是文件夾結構的屏幕截圖 enter image description here

+0

你有沒有加入' multiDexEnabled true'在你的build.gradle文件中? – piotrek1543

+0

不,我只是從文件中刪除testInstrumentationRunner =「android.support .....」並重新啓動它開始工作。 –

+0

請在您的文章中添加「解決方案」部分。也許有人會尋找這個問題的答案;-) – piotrek1543

回答

1

我不認爲這是完美的答案,但這就是我所做的。
我刪除testInstrumentationRunner = 「android.support.test.runner .....」從文件的build.gradle並重新啓動
它開始工作:)
這僅僅是信息

+0

第一個有用的答案。如果有人有更好的解決方案 - 給它,但不要給減。 –

相關問題