本文介紹了從 1.4.0 開始,現在無法訪問 Dex的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
當我想同步 gradle 時出現此錯誤:
when i want to sync gradle i get this error:
Error:Access to the dex task is now impossible, starting with 1.4.0
1.4.0 introduces a new Transform API allowing manipulation of the .class files.
See more information: http://tools.android.com/tech-docs/new-build-system/transform-api
當我點擊鏈接時,我沒有找到任何解決方案.誰有解決方案謝謝.
When i click the link, i don't find any solution. Anyone have solution thanks.
推薦答案
在 build.gradle 文件的 dependencies 部分中將你的 gradle 版本顯式設置為 1.3.0
set your gradle version explicitly to 1.3.0 in dependencies section of build.gradle file
classpath 'com.android.tools.build:gradle:1.3.0'
這篇關于從 1.4.0 開始,現在無法訪問 Dex的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!