當我嘗試縮小我的Feature APK大小時,我在我的功能Build Gradle中使用了shrinkResources true
。 然而,它的投訴Error:Resource shrinker cannot be used for libraries.
shrinkResources true不能用於Instant Apps功能?
這篇文章要求我們使用它 https://medium.com/jet-stories/make-your-app-instant-33855ab5d02b
難道我做錯了什麼,或者這真的不是爲了即時應用程序支持?
這可能是最近Gradle版本中可能存在的問題。在AS 3.0 Canary 4中''shrinkResources'對我來說工作正常。但是當我在AS 3 beta 4中試圖使用'shrinkResources true'時,我得到了和你一樣的錯誤。你能提交一個錯誤,然後把它鏈接回來嗎?這對所有人都有幫助,謝謝! https://issuetracker.google.com/issues/new?component=316045&template=1018787 –
謝謝。提交https://issuetracker.google.com/issues/new?component=316045&template=1018787 – Elye
@Elye您能分享問題鏈接嗎?我無法找到它https://issuetracker.google.com/issues?q=componentid:316045%20shrinkResources或https://issuetracker.google.com/issues?q=componentid:316045謝謝! –