【android studio】 the logging tag can be at most 23 characters
来源:互联网 发布:windows纸牌必胜攻略 编辑:程序博客网 时间:2024/04/28 10:46
今天写代码的时候,突然发现平时用的好好的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中设置只对当前项目有效;
stackoverflow链接:戳我
1 0
- 【android studio】 the logging tag can be at most 23 characters
- 【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
- The logging tag can be at most 23 characters
- Androidstudio the logging tag can be at most 23 characters
- The logging tag can be at most 23 characters, was 28 (EnterpriseUnixFTPEntryParser) less... (Ctrl+F1
- The logging tag can be at most 23 characters,was 24….
- the logging tag can be at most 23 character—解决log的TAG参数不能太长
- anroid studio更新中出现The Android SDK folder can no longer be inside the application......
- Android Studio-Warning:debug can be unavailable
- 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
- 写给自己看的五子棋人机思路
- 我的触摸屏制作”简史“2
- 查看电脑是64位还是32位
- css文字过多以点点省略
- UI考试题
- 【android studio】 the logging tag can be at most 23 characters
- 项目管理有感之二 需求调研
- 零散知识点杂烩
- ASP.NET 5 开发者的五个阶段-兄弟连IT教育
- 数据库多表连接查询详解
- ORACLE查询所有序列
- [转]给心爱的Mac一个ssh-copy-id
- android studio 使用gradle 导出jar包,并打包assets目录
- Dynamics CRM 非声明验证方式下连接组织服务的两种方式的性能测试