当我尝试从 Analyze - >导出报告时检查代码 ,报告未保存,事件日志显示IDE致命错误窗口中的以下错误:
空 显示java.lang.NullPointerException 在com.intellij.codeInspection.ex.DescriptorComposer.composeDescription(DescriptorComposer.java:195) 在com.intellij.codeInspection.ex.DescriptorComposer.compose(DescriptorComposer.java:64) at com.intellij.codeInspection.export.InspectionTreeHtmlWriter.lambda $ null $ 0(InspectionTreeHtmlWriter.java:107) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:63) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:65) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:65) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:65) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.lambda $ serializeTreeToHtml $ 2(InspectionTreeHtmlWriter.java:84) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.appendTree(InspectionTreeHtmlWriter.java:185) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter.serializeTreeToHtml(InspectionTreeHtmlWriter.java:72) 在com.intellij.codeInspection.export.InspectionTreeHtmlWriter。(InspectionTreeHtmlWriter.java:54) at com.intellij.codeInspection.ui.actions.ExportHTMLAction.lambda $ null $ 0(ExportHTMLAction.java:102) 在com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:912) at com.intellij.codeInspection.ui.actions.ExportHTMLAction.lambda $ null $ 1(ExportHTMLAction.java:96) 在com.intellij.openapi.progress.impl.CoreProgressManager $ 2.run(CoreProgressManager.java:247) 在com.intellij.openapi.progress.impl.CoreProgressManager $ TaskRunnable.run(CoreProgressManager.java:713) 在com.intellij.openapi.progress.impl.CoreProgressManager $ 5.run(CoreProgressManager.java:397) 在com.intellij.openapi.progress.impl.CoreProgressManager.lambda $ runProcess $ 1(CoreProgressManager.java:157) 在com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543) 在com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488) 在com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) 在com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144) at com.intellij.openapi.application.impl.ApplicationImpl.lambda $ null $ 10(ApplicationImpl.java:575) 在com.intellij.openapi.application.impl.ApplicationImpl $ 1.run(ApplicationImpl.java:315) at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617) 在java.lang.Thread.run(Thread.java:745)
答案 0 :(得分:0)
已通过更新gradle构建文件和Android Studio版本解决。