任务':app:countPlayUatDexMethods'的执行失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了任务':app:countPlayUatDexMethods'的执行失败相关的知识,希望对你有一定的参考价值。
在启用了Instant Run的android Studio 3.1.3中构建应用程序时,我遇到以下错误。
Execution failed for task ':app:countPlayUatDexMethods'.
> java.io.FileNotFoundException: C:UsersRakeshDesktopappWorkspaceappuildintermediatesinstant-run-resources
esources-playUAT-PLAY.apk (The system cannot find the file specified)
日志说:
:app:countPlayUatDexMethods FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:countPlayUatDexMethods'.
> java.io.FileNotFoundException: C:UsersRakeshDesktopappWorkspaceappuildintermediatesinstant-run-resources
esources-playUAT-PLAY.apk (The system cannot find the file specified)
版本详情:
- Android Studio:3.1.3
- Android gradle插件:3.1.3
- gradle包装:4.4
- Kotlin插件:1.2.30
答案
我找到了原因,这是解决方案。 dexcount-gradle-plugin
是麻烦制造者。我将其版本更新为:
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.3'
感谢this链接中的解决方案。
以上是关于任务':app:countPlayUatDexMethods'的执行失败的主要内容,如果未能解决你的问题,请参考以下文章
text 任务':app:transformClassesWithDexBuilderForDebug'的执行失败。
text “任务执行失败”:app:compileDebugJavaWithJavac'本地反应“
错误:任务':app:transformDexWithInstantRunSlicesApkForDebug'的执行失败。无法读取zip文件
任务':app:transformClassesWithMultidexlistForDebug'重复Zip条目的执行失败
Flutter Notification OneSignal-无法确定任务':app:compileDebugJavaWithJavac'的依赖项
任务':app:transformClassesWithDexBuilderForDebugAndroidTest'的执行失败,java.lang.RuntimeException(代