How to remove all debug logging calls before building the release version of an Android app?

前端 未结 27 1484
有刺的猬
有刺的猬 2020-11-22 07:39

According to Google, I must \"deactivate any calls to Log methods in the source code\" before publishing my Android app to Google Play. Extract from section 3 of th

27条回答
  •  感情败类
    2020-11-22 08:11

    my Way:

    1) enable Column Selection Mode (alt+shift+insert)

    2) select on one Log.d(TAG, "text"); the part 'Log.'

    3) then do shift + ctrl + alt + j

    4) click left arrow

    5) do shift+end

    6) hit delete.

    this removes all LOG calls at once in a java file.

提交回复
热议问题