Android Studio 3.0 Canary 8: advanced profiling not available for selected process

In Android Studio 3.0 Canary 3, if I remember correctly, advanced profiling worked without issue once it was enabled in the launch config. However, after upgrading to AS 3 Canary 8, even if I enable advanced profiling, scrubbing, rebuilding and deployment on a Google Pixel running Android 7.1.2, Android Profiler keeps telling me that "Advanced profiling is not available for the selected process."

The launch config also says:

Enable advanced profiling (only required for API level <26)

so I put together an SDK to compile to 26, but I still had no luck. An app is a multi-disk app if it matters.

Any suggestions as to what I am missing or is a known issue in Canary 8 would be much appreciated.

Note. The documentation states that enabling it slows down my build speed, but it doesn't seem to affect my build speed, which makes me wonder if the setting is being ignored.

+3


source to share


1 answer


I finally got it working by doing the following:



  • Leave the compiled SDK at 26
  • The launch configuration has the "Enable advanced profiling" activation enabled, although it states that this is only needed for API level <26
  • Disable Proguard (this seems to be the most important)
+5


source







All Articles