My application runs perfectly.
But my logcat
give an error every time when I run my application:
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
What's this error means?
Why it's occurred every time?
I am using Android studio 3.0.1 and 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.
I thing when you disable the option your Garbage collection events in Memory Profiler are cleared and then when you run build it works perfectly.