error: resource android:attr/ttcIndex not found.
来源:1-1 课前必读(不看会错过一个亿)
qq_慕工程417253
2019-07-03
AGPBI: {"kind":"error","text":"error: resource android:attr/ttcIndex not found.","sources":[{"file":"/Users/sunrifa/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/ff3210b950f63556b077b83b2e710573/res/values/values.xml","position":{"startLine":250,"startColumn":4,"startOffset":27058,"endColumn":68,"endOffset":27122}}],"original":"","tool":"AAPT"}
:app:processDebugResources
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
网上说是因为某个模块的compileSdkVerion版本高于support的版本,就会报这个错,我把高于27.1.1的,修改低于27.1.1依然报错
写回答
2回答
-
qq_慕工程417253
提问者
2019-07-04
问题已解决,我升级了gradle为3.4.1后解决了这个问题,虽然后来还是遇到很多问题,但是发现都离不开第三方的包,找出那个包,基本上都是修改build.gradle里的依赖的版本,play.services.gcm这个我在依赖里碰到了两次,修改版本为15.0.1,找不到资源的问题迎刃而解,至此两个二开项目build在ios和android终跑通,附上遇到的问题的记录,https://blog.csdn.net/qq_39702364/article/details/93484680
10 -
CrazyCodeBoy
2019-07-04
报这个错误之前你都做了什么操作呢?将操作还原再试一下
012019-07-04
相似问题