

You cannot debug the APK’s native code or useīreakpoints without attaching debuggable native libraries. Symbols, the IDE shows you a banner, similar to You can now add breakpoints andĭebug your app as you normally would. The IDE also includes inner classesĪutomatically.

smali file from the Project pane (use theĪndroid view). To attach Kotlin/Java sources, proceed as follows: To debug the Kotlin/Java code using breakpoints, you Similarly, to debug your native code, you mustīy default, Android Studio extracts Kotlin/Java code from your APK and saves To debug your app’s Kotlin/Java code, you need toĪttach the Kotlin/Java sources and add breakpoints in the

Select the APK you want to import into Android Studio and click OK.Īndroid Studio then displays the unpacked APK files, similar to figure 1. Or, if you already have a project open, clickįile > Profile or Debug APK from the menu bar. To start debugging an APK, click Profile or debug APK from the Android To build them from an Android Studio project. Android Studio 3.0 and higher allow you to profile and debug APKs without having
