這是Google的說明:Added a feature that allows you to run some code only in debug mode. Builds now generate a class called BuildConfig containing a DEBUGconstant that is automatically set according to your build type. You can check the (BuildConfig.DEBUG) constant in your code to run debug-only functions.
2016-02-16
這個文件在之前的ADT里面是沒有的,現在ADT17.0開始添加的。由IDE自動生成,作用是方便開發者的調試。
這是Google的說明:Added a feature that allows you to run some code only in debug mode. Builds now generate a class called BuildConfig containing a DEBUGconstant that is automatically set according to your build type. You can check the (BuildConfig.DEBUG) constant in your code to run debug-only functions.
你直接用Ece跑它一直是true的,你可以看見各種調試信息(比如log),但是當你把它打包發布之后,會變成false,此時便不會被別人看見了。
2015-12-15
這個是自動生成的