在项目root路径,命令行输入:
gradlew processDebugResources --debug
然后项目开始编译,屏幕上输出大量编译Log信息,从Log中找到了输出的出错信息:
org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
org.gradle.process.internal.DefaultExecHandle] Process 'command 'E:\Android\SDK\build-tools\23.0.1\aapt.exe'' finished with exit value 1 (state: FAILED)
org.gradle.api.Project] Unknown source file : ERROR: In ListItemLinearLayout, unable to find attribute singleLine
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':samples-simplevideowidget:processDebugResources'
E] [class org.gradle.TaskExecutionLogger] :samples-simplevideowidget:processDebugResources FAILED
从上述Log信息,我们可知出错点是ERROR: In ListItemLinearLayout, unable to find attribute singleLine,那么肯定是attrs文件的ListItemLinearLayoutstyleable出错了。
网友评论