如何正确使用setDeveloperModeEnabled(BuildConfig.DEBUG)?

问题描述 投票:1回答:1

在一些代码示例中,BuildConfig.DEBUG等于true,但在我的项目中,一个等于false。为什么会这样?不幸的是,我在Google Firebase官方网站文档中没有找到任何相关内容。 enter image description here

enter image description here

android firebase
1个回答
1
投票

BuildConfig.DEBUG(除了BuildConfig类中的所有内容之外)是在构建项目时由Android构建工具设置的。它是调试版本时分配为true,发布版本为false。此值与Firebase或其SDK无关。

另见this question

© www.soinside.com 2019 - 2024. All rights reserved.