the logging tag can be at most 23 characters
来源:互联网 发布:智能电视网络设置 编辑:程序博客网 时间:2024/05/02 03:04
使用Android Studio时项目中Log报错the logging tag can be at most 23 characters
今天写代码的时候,突然发现平时用的好好的Log竟然报错,提示信息为:the logging tag can be at most 23 characters,was 27...
当前Android studio版本为1.4.1, sdk版本为23,可能是更新版本后,对应的API规范有调整,根据提示的意思Log.e(TAG,message)第二个参数的长度最大不能超过23个字符。之前用eclipse的时候,lint检查不通过的会有这个错误提醒,估计是这个出了问题。
google之后,在stackoverflow上发现了答案,即:关掉lint检查中针对Too Long Log Tag检查。解决方案有两个:
一、在设置中关闭
二、在build.gradle中设置
- lintOptions {
- disable 'LongLogTag'
- }
一劳永逸的做法是方案一,因为在build.gradle中设置只对当前项目有效;
1 0
- the logging tag can be at most 23 characters
- The logging tag can be at most 23 characters
- Androidstudio the logging tag can be at most 23 characters
- 【android studio】 the logging tag can be at most 23 characters
- The logging tag can be at most 23 characters, was 28 (EnterpriseUnixFTPEntryParser) less... (Ctrl+F1
- 【android studio】 the logging tag can be at most 23 characters
- 【android studio】 the logging tag can be at most 23 characters
- The logging tag can be at most 23 characters,was 24….
- the logging tag can be at most 23 character—解决log的TAG参数不能太长
- ios error:A view can only be associated with at most one view controller at a time
- GraphicsMagick报错:this most likely means the gm/convert binaries can't be found
- GraphicsMagick报错:this most likely means the gm/convert binaries can't be found
- centos g c exception:this most likely means the gm/convert binaries can't be found
- These are the characters that can be directly encoded in UTF7...
- ASP.NET - Web.Config - Using the tag with web.config can be helpful.
- Most gemstones can be Tiffany jewelry
- iOS使用XIB文件报错:reason: 'A view can only be associated with at most one view controller at a time!
- [Leetcode] Longest Substring with At Most Two Distinct Characters
- sparkstreaming版本的单词统计
- MySQL修改编码设置及乱码问题
- Linux 块设备驱动 (1)
- 原始kd树的构建和显示(递归实现)
- 浅谈Ios开发之Objektiv-C基础面向对象
- the logging tag can be at most 23 characters
- 省赛总结...
- spring添加AOP切面-基于XML配置
- JavaScript的apply和装饰器模式
- 图解asp.net数据库连接字符串加密和aspnet_regiis
- Swift 中使用 SQLite——打开数据库
- echarts-JSON请求数据
- c语言写的简易ATM取款机
- 剑指Offer----面试题19:二叉树的镜像