错误

  1. Error:Internal error: (org.jetbrains.jps.builders.storage.BuildDataCorruptedException) com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\11197\.IntelliJIdea2019.3\system\compile-server\jdksourcelearn_59eec204\backward-refs\back.class.def.inputs
  2. org.jetbrains.jps.builders.storage.BuildDataCorruptedException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\11197\.IntelliJIdea2019.3\system\compile-server\jdksourcelearn_59eec204\backward-refs\back.class.def.inputs
  3. at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex.<init>(CompilerReferenceIndex.java:124)
  4. at org.jetbrains.jps.backwardRefs.JavaCompilerBackwardReferenceIndex.<init>(JavaCompilerBackwardReferenceIndex.java:13)
  5. at org.jetbrains.jps.backwardRefs.JavaBackwardReferenceIndexWriter.initialize(JavaBackwardReferenceIndexWriter.java:80)
  6. at org.jetbrains.jps.incremental.java.JavaBuilder.buildStarted(JavaBuilder.java:152)
  7. at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:361)
  8. at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
  9. at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:140)
  10. at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:297)
  11. at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:130)
  12. at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:232)
  13. at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$$Lambda$17/860694114.run(Unknown Source)
  14. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  15. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  16. at java.lang.Thread.run(Thread.java:745)
  17. Caused by: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\11197\.IntelliJIdea2019.3\system\compile-server\jdksourcelearn_59eec204\backward-refs\back.class.def.inputs
  18. at com.intellij.util.io.PersistentEnumeratorBase.<init>(PersistentEnumeratorBase.java:221)
  19. at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:73)
  20. at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:47)
  21. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:149)
  22. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:138)
  23. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:129)
  24. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:121)
  25. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:114)
  26. at com.intellij.util.indexing.impl.forward.PersistentMapBasedForwardIndex.createMap(PersistentMapBasedForwardIndex.java:39)
  27. at com.intellij.util.indexing.impl.forward.PersistentMapBasedForwardIndex.<init>(PersistentMapBasedForwardIndex.java:29)
  28. at com.intellij.util.indexing.impl.forward.PersistentMapBasedForwardIndex.<init>(PersistentMapBasedForwardIndex.java:25)
  29. at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex$CompilerMapReduceIndex.<init>(CompilerReferenceIndex.java:276)
  30. at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex.<init>(CompilerReferenceIndex.java:110)
  31. ... 13 more
  32. Please perform full project rebuild (Build | Rebuild Project)

解决办法

关掉IDEA
找到 C:\Users\{你的用户名}\.IntelliJIdea2019.3\system\compile-server\{你编译的项目}
把这个文件夹的文件删除完,然后重新打开IDEA编译。