现在,我可以解决它。我从布局xml中删除了一些标记。
.enter().append("rect")
<<<<从所有布局xml中删除此标记。
<?xml version="1.0" encoding="utf-8"?>
如果我删除它(下面),我可以正常构建项目。
Information:Gradle tasks [:MaterialDesign:generateDebugSources, :MaterialDesign:generateDebugAndroidTestSources, :app:generateDebugSources, :app:generateDebugAndroidTestSources]
:MaterialDesign:preBuild UP-TO-DATE
:MaterialDesign:preDebugBuild UP-TO-DATE
:MaterialDesign:checkDebugManifest
:MaterialDesign:preDebugAndroidTestBuild UP-TO-DATE
:MaterialDesign:preDebugUnitTestBuild UP-TO-DATE
:MaterialDesign:preReleaseBuild UP-TO-DATE
:MaterialDesign:preReleaseUnitTestBuild UP-TO-DATE
:MaterialDesign:prepareComAndroidSupportSupportV42221Library UP-TO-DATE
:MaterialDesign:prepareDebugDependencies
:MaterialDesign:compileDebugAidl UP-TO-DATE
.
.
.
:app:dataBindingProcessLayoutsDebug
line 1:0 extraneous input '?' expecting {COMMENT, SEA_WS, '<', PI}
line 1:0 mismatched input '?' expecting {COMMENT, SEA_WS, '<', PI}
Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'.
> java.lang.NullPointerException (no error message)
Information:BUILD FAILED
Information:Total time: 12.924 secs
Information:1 error
Information:0 warnings
Information:See complete output in console