美文网首页
android studio有错找不到时

android studio有错找不到时

作者: 0m | 来源:发表于2018-04-20 12:31 被阅读0次

    在项目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出错了。

    相关文章

      网友评论

          本文标题:android studio有错找不到时

          本文链接:https://www.haomeiwen.com/subject/tscxvttx.html