android-studio - 任务“:app:countPlayUatDexMethods”执行失败
问题描述
在启用 Instant Run 的 Android Studio 3.1.3 中构建应用程序时,我遇到了以下错误。
Execution failed for task ':app:countPlayUatDexMethods'.
> java.io.FileNotFoundException: C:\Users\Rakesh\Desktop\appWorkspace\app\build\intermediates\instant-run-resources\resources-play\UAT-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:\Users\Rakesh\Desktop\appWorkspace\app\build\intermediates\instant-run-resources\resources-play\UAT-PLAY.apk (The system cannot find the file specified)
版本详情:
- 安卓工作室:3.1.3
- Android gradle 插件:3.1.3
- 毕业包装:4.4
- Kotlin 插件:1.2.30
解决方案
我找到了原因和解决方案。dexcount-gradle-plugin
是麻烦制造者。我将其版本更新为:
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.3'
感谢此链接中的解决方案。
推荐阅读
- python - 无法使用烧瓶服务器在 IIS 上运行破折号应用程序
- android - 如何在 CircleAvatar 上放置指向菜单的链接?有可能吗?
- python-3.x - 如何以反转形式打印二进制数?
- c# - 时间:2019-05-10 标签:c#mapprinterwithcmd
- jenkins - 如何在Jenkins-groovy脚本中传递声明为`def`的变量
- java - 找不到创建唯一随机数的方法...(BINGO 游戏)
- api - 创建组订阅。我是否需要为组织中的每个组创建订阅以查找对话的更改
- sql - 无键查询 JSONB
- python - 在 conda 环境中启动 jupyter 的错误消息
- machine-learning - 神经网络中的测试数据准确度高,但在尝试识别图像时输出不佳