How to add a linked source folder in Android Studio?

前端 未结 6 1805
野的像风
野的像风 2020-11-28 05:38

In Eclipse I can add a source folder to my android project as a \"linked source folder\". How do I achieve the same thing in Android Studio?

Or is it possible to ad

6条回答
  •  一向
    一向 (楼主)
    2020-11-28 06:13

    If you're not using gradle (creating a project from an APK, for instance), this can be done through the Android Studio UI (as of version 3.3.2):

    • Right-click the project root directory, pick Open Module Settings
    • Hit the + Add Content Root button (center right)
    • Add your path and hit OK

    In my experience (with native code), as long as your .so's are built with debug symbols and from the same absolute paths, breakpoints added in source files will be automatically recognized.

提交回复
热议问题