How can I list which dependencies count against the dex limit for an androidTest apk in AGP 3.0?

感情迁移 提交于 2019-12-11 01:13:19

问题


I upgraded to AGP 3.0, but then got a com.android.dex.DexIndexOverflowException for the androidTest apk. I didn't have this issue with gradle 2.3.3. How can I get a dependency report for exactly which dependencies are being added only to an androidTestApk (aka dependencies which count against the 65k dex limit)

I tried: ❯ ./gradlew app:dependencies --configuration androidTestApk

androidTestApk - Apk dependencies for 'androidTest' sources (deprecated: use 'androidTestRuntimeOnly' instead). (n)
No dependencies

So I tried: ❯ ./gradlew app:dependencies --configuration androidTestRuntimeOnly

androidTestRuntimeOnly - Runtime only dependencies for 'androidTest' sources. (n)
No dependencies

What should I do?

Note: this issue would be fixed by bumping the minSdk to 21 (but I cannot do that for my main apk)

来源:https://stackoverflow.com/questions/47269314/how-can-i-list-which-dependencies-count-against-the-dex-limit-for-an-androidtest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!