Android Studio's debugger not stopping at breakpoints within library modules

前端 未结 7 1292
难免孤独
难免孤独 2020-12-03 00:27

At the moment I\'m developing an Android app that is based on third party code. I started to set breakpoints for understanding the code and soon ran into a problem. Suddenly

7条回答
  •  北海茫月
    2020-12-03 00:56

    In fact, there's a known issue in Android Studio: Gradle plugin does not propagate debug/release to dependencies. It seems to happen in A Studio 1.4 and 1.5 at least.

    When an app is compiled in debug, its modules are in fact compiled in release. That's why proguard may be enabled in debug.

    I recommend this answer that worked for me.

提交回复
热议问题