Status Update
Comments
yo...@gmail.com <yo...@gmail.com> #3
Old issue that says this used to work in AS 2.2:
vi...@google.com <vi...@google.com> #4
ga...@gmail.com <ga...@gmail.com> #5
vi...@google.com <vi...@google.com>
rp...@google.com <rp...@google.com>
rp...@google.com <rp...@google.com> #6
When debugging an application, Android Studio detects the API level of the phone (or emulator) and tries to locate the corresponding Android SDK sources.
For example, if you have the sources for 25, 28 and 29, Android Studio recognizes those
~/Library/Android/sdk/sources/android-25"
~/Library/Android/sdk/sources/android-28"
~/Library/Android/sdk/sources/android-29"
If the version of the device does not match any of these, Android Studio default to the highest version (api 29 in this case).
Long story short, if you install the sources for API 19, Android Studio should use the API 19 directory.
rp...@google.com <rp...@google.com> #7
Kun: The logic of this code is in com.android.tools.idea.debug.AndroidPositionManager (getApiSpecificPsi method). There is a "TODO" there that says maybe we should download the SDK source if we don't find a matching one. Another (less costly) option would be to show a notification (popup balloon) explaining that Android Studio is not using the "correct" SDK source code because it is currently not downloaded. (and give instructions on how to download with SDK manager).
rp...@google.com <rp...@google.com> #8
(Note: I tried with a simple project using API 19, and I can confirm that downloading the SDK sources with SDK Manager results in Android Studio navigating to the corresponding API sdk source code)
rp...@google.com <rp...@google.com> #9
(deleted)
[Deleted User] <[Deleted User]> #10
It seems like Pixel ROM isn't same as AOSP and i was just debugging platform's TextView.
Description
Version of Gradle Plugin: 3.5.3
Version of Gradle: 6.0.1
Version of Java: Bundled with AS
OS: Catalina
Steps to Reproduce:
1. Download
2. Put a breakpoint in LottieDrawable#draw
3. Navigate up the source stack and notice that it navigates the source for API 29, not API 19