aapt.AaptException Failed to crunch file
来源:互联网 发布:php菱形 编辑:程序博客网 时间:2024/05/17 04:53
aapt.AaptException Failed to crunch file
1、问题背景
今天公司项目开始了一个版本迭代,从git上new branch后,check 到本地,却发现怎么也跑不起来,同样的分支,其他同事就很正常,百思不得其解。
2、错误信息
查看日志,发现报这个错 aapt.AaptException Failed to crunch file
3、解决方案
通过检索如题的错误信息,发现这是一个android studio的坑。
根据stackOverflow上面前辈们的描述,File path too long on windows, keep below 240 characters,大概的意思是项目路径太长,导致有的资源文件整个路径长度超过了240个字符。
之后,我发现我新分支的名字确实挺长的,于是乎,我重命名了新分支的项目名后,问题迎刃而解。
特撰文以避此坑
0 0
- aapt.AaptException Failed to crunch file
- aapt.AaptException: Failed to crunch file
- Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file
- Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file G:
- Android Bug Error: com.android.builder.internal.aapt.AaptException: Failed to crunch file
- Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file D:\my\Android-VideoStre
- com.android.builder.internal.aapt.AaptException: Failed to crunch file解决方案
- Error:com.android.builder.internal.aapt.AaptException: Failed to crunch
- Failed to crunch file
- error:abc_textfield_search_default_mtrl_alpha Failed to crunch file
- Android Studio Failed to crunch file
- build报错Failed to Crunch File
- Android studio 导入项目出现:Failed to crunch file
- 报错信息: Error:Failed to crunch file
- AS导入工程出现 Error:Failed to crunch file
- Android sutdio Error:Failed to crunch file 错误的解决
- Android studio 导入项目出现:Failed to crunch file
- Android studio 导入项目出现:Failed to crunch file
- 学会发表博客
- 第几天
- 第一章:对象导言
- kafka问题: Error reading field 'topics'
- jQuery选择器课堂随笔
- aapt.AaptException Failed to crunch file
- JavaScript特效代码收集
- Android ActionBar 使用注意事项
- hibernate criteria中Restrictions的用法
- InputStream 二进制读取文件, byte数据的长度问题
- LeetCode:Single Number
- PBAC数据库表中设计及关联
- 全栈工程师培训材料
- 反转链表