I am developing an Android app with multiple modules. The app uses ProGuard, compileSdkVersion is set to 27 in all modules, and when I tried to enable Advanced Profiling I continue to get a message saying "Advanced profiling is unavailable for the selected process".
Solutions I've tried after searching other questions about the topic:
Am I missing something? Is there anything else I can do to enable Advanced Profiling?
Select Run > Edit Configurations. Select your app module in the left pane. Click the Profiling tab, and then check Enable additional support for older devices (API level < 26). Build and run your app again.
To open the Network Inspector, follow these steps: From the Android Studio navigation bar, select View > Tool Windows > App Inspection. After the app inspection window automatically connects to an app process, select Network Inspector from the tabs.
The Native Memory Profiler tracks allocations/deallocations of objects in native code for a specific time period and provides the following information: Allocations: A count of objects allocated via malloc() or the new operator during the selected time period.
I had the same problem and the solution was easy, in my case: set debuggable true in file build.gradle for the selected Build Variant.
If you are running API level < 26, enable the Profiler in Run -> Edit Configurations. From the list, choose your module. On the right hand side of the window, click Profiling. Enable the checkbox Enable advanced profiling.
Had the same problem with my phone Android api level 28: "Android Profiling is unavailable for the selected process".
Solution 1.
The following steps helped me temporarely - then after rebuild the problem appeared again:
Solution 2.
Use emulator api level 29. Advanced profiling always works fine for me there.
What didn't help me:
And such Android Studio tricks drive me crazy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With