The logging tag can be at most 23 characters

后端 未结 8 1534
-上瘾入骨i
-上瘾入骨i 2020-12-13 12:46

Since update AS 1.1 Preview 2, I\'m getting red lines under all my Log messages

Log.d(TAG, \"message\");

With message: \"

8条回答
  •  甜味超标
    2020-12-13 13:00

    You can disable it if you so choose.

    In Android Studio, Analyze->Inspect Code.

    screenshot

    Under Inspection Profile, click on the button with the 3 horizontal dots.

    The following window should open. Search for "log" and uncheck "Too Long Log Tags".

    screenshot

    Update: Android Studio 2.2, it is located under Android Lint: Correctness

    screenshot

提交回复
热议问题