所选进程无法使用 Android 分析,但启用了高级分析 [英] Android Profiling is unavailable for the selected process, but advanced profiling is enabled

查看:31
本文介绍了所选进程无法使用 Android 分析,但启用了高级分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发具有多个模块的 Android 应用.该应用程序使用 ProGuard,所有模块中的 compileSdkVersion 都设置为 27,当我尝试启用高级分析时,我继续收到一条消息,指出所选进程无法使用高级分析".

I am developing an Android app with multiple modules. The app uses ProGuard, compileSdkVersion is set to 27 in all modules, and when I tried to enable Advanced Profiling I continue to get a message saying "Advanced profiling is unavailable for the selected process".

我在搜索有关该主题的其他问题后尝试过的解决方案:

Solutions I've tried after searching other questions about the topic:

  1. 为应用程序以及默认运行配置启用高级分析(显然)
  2. 使用 minifyEnabled false 在所有模块中禁用 ProGuard
  3. 将 Studio 版本更新到 3.1.3,将 Gradle 更新到 4.4
  4. 在上述更改后重建项目

我错过了什么吗?我还能做些什么来启用高级分析?

Am I missing something? Is there anything else I can do to enable Advanced Profiling?

推荐答案

我遇到了同样的问题,解决方案很简单,就我而言:在文件 build.gradle 中设置 debuggable true 用于选定的构建变体.

I had the same problem and the solution was easy, in my case: set debuggable true in file build.gradle for the selected Build Variant.

这篇关于所选进程无法使用 Android 分析,但启用了高级分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆