安卓工作室 3.0 : Studio Profilers encountered an unexpected error

标签 android android-logcat android-studio-3.0 android-profiler

我的应用程序运行完美。

但是我的logcat 每次运行我的应用程序时都会报错:

12-11 20:45:42.539 946-1547/package E/StudioProfiler: Studio Profilers encountered an unexpected error. Consider reporting a bug, including logcat output below.

See also: https://developer.android.com/studio/report-bugs.html#studio-bugs

Failed to capture application

这个错误是什么意思?

为什么每次都出现?

我正在使用 Android studio 3.0.1 和 Gradle 3.0.1。

最佳答案

However, not all profiling data is visible by default. If you see a message that says, "Advanced profiling is unavailable for the selected process," you need to enable advanced profiling in your run configuration:

  1. Select Run > Edit Configurations.
  2. Select your app module in the left pane.
  3. Click the Profiling tab, and then check Enable advanced profiling.

原因:

我想当您禁用该选项时,您在 Memory Profiler 中的垃圾收集事件将被清除,然后当您运行构建时它会完美运行。

关于安卓工作室 3.0 : Studio Profilers encountered an unexpected error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47807763/

相关文章:

android - 使用 keytool 以非交互方式生成 key

java - 如何获取其他应用程序的日志?

Android Webview 未知错误

java - 如何在带有 android 6.0.1 的 2013 nexus 7 上将 sockethandler 添加到 logcat?

android - 错误:将字节码转换为dex时出错:原因:com.android.dex.DexException:多个dex文件定义了Lcom/example/admin/myapplication/MainActivity;

android - 如何获取 Android 本地服务实例

android - 如何在 Android 中限制特定 Flavor 的暗模式

Gradle 无法解析来自另一个模块的引用

Android 无法合并 dex 错误。查看内容

java - 循环播放音频Android Studio