Why does Gradle build my module in Release mode when the app is in Debug

前端 未结 4 1060
醉话见心
醉话见心 2020-11-28 05:26

I\'m making a new Android project, with the standard \'app\' module, as well as a library project (let\'s call it \'custom_lib\'). In the app

4条回答
  •  青春惊慌失措
    2020-11-28 05:50

    This is closely related to this question.

    It appears that Gradle builds all referenced modules of a project in release mode. Since custom_lib is only a library, its configuration is overridden by the module that references it. I wouldn't be too concerned about the library being built with the "release" label.

    You'll note that in your gradle output, your project is correctly being compiled with the debug configuration.

提交回复
热议问题