I have an error but I have not found how to solve it as such but only how to cover the problem.
Log.e("APIComm:AssetsPropertyReader", e.toString());
It gives me the error
The log in tag can be at most 23 characters, was 26
I have an error but I have not found how to solve it as such but only how to cover the problem.
Log.e("APIComm:AssetsPropertyReader", e.toString());
It gives me the error
The log in tag can be at most 23 characters, was 26
Remember that the maximum length is 23 characters in a tag, otherwise you will get an IllegalArgumentException .
The definition of the tag is:
In this case the problem is the length of your tag
"APIComm:AssetsPropertyReader"
, reduce it to 23 characters or less , for example:mistake:
option:
In the documentation you can review what was mentioned above.
It should be noted that in android 7.0 (Nougat), this length is no longer a concern, if you define it in your project
targetSdk 24
you can easily add the desired number of characters in theTAG
, of your message to be displayed in theLogCat
.The solution tells you in the same error, the label (tag) cannot have more than 23 characters. That is, it cannot have more than 23 letters, otherwise it will throw an exception.
The label is the first parameter that receives the statement:
Your problem is solved by shortening the label. Instead of using
APIComm:AssetsPropertyReader
you can useAPIComm:AssetsProperty
.