Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0 Canary 8: Advanced profiling is unavailable for the selected process

On Android Studio 3.0 Canary 3 if I remember correctly advanced profiling worked without problems, once it was enabled in the run configuration. However after upgrading to AS 3 Canary 8 even if I enable advanced profiling, clean, rebuild and deploy to a Google Pixel running Android 7.1.2 the Android Profiler keeps telling me, that "Advanced profiling is unavailable for the selected process".

In the run configuration it also says:

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

so I raised my compile SDK to 26 - but still no luck. The application is a multi-dex application in case that is relevant.

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

Note: The documentation states that enabling will slow down my build speed, but it doesn't seem to have any impact on my build speed, which makes me wonder if the setting is ignored.

like image 352
AgentKnopf Avatar asked Jul 29 '17 20:07

AgentKnopf


People also ask

How to open Android Profiler in Android Studio?

To open the Profiler window, choose View > Tool Windows > Profiler or click Profile in the toolbar. If prompted by the Select Deployment Target dialog, select the device on which to profile your app.

How do I start Android Profiler?

From the development emulator or device, start the app. In Android Studio, launch the profiler by selecting View > Tool Windows > Profiler. button in the profiler to see the dropdown menu. Select your device, then select the application's entry under Other profileable processes.

Which is the useful for screen capturing memory mapping Logcat?

DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.


1 Answers

I finally got it to work by doing the following:

  • Leave compile SDK at 26
  • In the run configuration have "Enable advanced profiling" activated, even though it states this is only needed for API level < 26
  • Disable Proguard (this seems to be the most important)
like image 155
AgentKnopf Avatar answered Sep 27 '22 19:09

AgentKnopf