2013-02-15 47 views

回答

0

您不需要。您可以只需登錄他們Log.d水平,然後使用工具,如ProGuard的消除這些日誌

http://proguard.sourceforge.net/

在這個答案Remove all debug logging calls before publishing: are there tools to do this?

編輯

更多的解釋如果是這樣的你需要在外部屬性文件中擁有某種布爾值並且寫入日誌。在這裏 Variables from properties file in Ant

+0

謝謝你的回答,但這不是我所問的,我不僅需要刪除日誌消息,而且還需要其他一些代碼,所以在運行調試之前,唯一需要的是一個簡單的真/假條件碼。這可能嗎? – user1804542 2013-02-15 06:49:58

相關問題