我的应用程序运行完美。
但是我的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:
- Select Run > Edit Configurations.
- Select your app module in the left pane.
- 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/