androidandroid-logcatandroid-studio-3.0android-profiler

Android studio 3.0: Studio Profilers encountered an unexpected error


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 .


Solution

  • 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.

    Reason:

    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.