Where is BuildConfig.DEBUG?

后端 未结 4 905
闹比i
闹比i 2021-02-01 16:54

My project doesn\'t seem to be aware of this new constant that\'s apparently auto-generated in Android Tools r17 builds:

\"Added a feature that allows you to run some co

4条回答
  •  梦如初夏
    2021-02-01 17:20

    I've just checked. It is generated here (in all your projects):

    gen/package_name/BuildConfig.java
    

    And contains the following:

    /** Automatically generated file. DO NOT MODIFY */
    package package_name;
    
    public final class BuildConfig {
        public final static boolean DEBUG = true;
    }
    

提交回复
热议问题