我正在尝试superDev编译一个'工作'GWT Libgdx项目,该项目最近在更新到LibGDX 1.9.6,GWT 2.8.0和jre1.8.0_121时会遇到潜在的文件和/或库问题。< / p>
以下是编译时的错误跟踪:
GET /recompile/html
Job com.client.GdxDefinitionSuperdev_1_0
starting job: com.client.GdxDefinitionSuperdev_1_0
binding: locale=default
binding: user.agent=safari
binding: web.sockets=true
Compiling module com.client.GdxDefinitionSuperdev
Unification traversed 1638 fields and methods and 361 types. 36 are considered part of the current module and 42 had all of their fields and methods traversed.
Compiling 1 permutation
Compiling permutation 0...
[ERROR] Unexpected internal compiler error
java.lang.NullPointerException
at com.google.gwt.dev.jjs.ast.HasName$1.compare(HasName.java:33)
at com.google.gwt.dev.jjs.ast.HasName$1.compare(HasName.java:30)
at java.util.TimSort.binarySort(TimSort.java:296)
at java.util.TimSort.sort(TimSort.java:221)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at com.google.gwt.dev.jjs.ast.JTypeOracle.getCastableDestinationTypes(JTypeOracle.java:734)
at com.google.gwt.dev.jjs.impl.ComputeExhaustiveCastabilityInformation.createCompleteCastMap(ComputeExhaustiveCastabilityInformation.java:44)
at com.google.gwt.dev.jjs.impl.ComputeExhaustiveCastabilityInformation.execImpl(ComputeExhaustiveCastabilityInformation.java:50)
at com.google.gwt.dev.jjs.impl.ComputeExhaustiveCastabilityInformation.exec(ComputeExhaustiveCastabilityInformation.java:32)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.normalizeSemantics(JavaToJavaScriptCompiler.java:500)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:364)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
at java.lang.Thread.run(Thread.java:745)
[ERROR] Unrecoverable exception, shutting down
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:112)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:459)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
at java.lang.Thread.run(Thread.java:745)
[ERROR] Not all permutation were compiled , completed (0/1)
[WARN] recompile failed
[WARN] continuing to serve previous version
我找到了这个
java.lang.NullPointerException
at com.google.gwt.dev.jjs.ast.HasName$1.compare(HasName.java:33)
at com.google.gwt.dev.jjs.ast.HasName$1.compare(HasName.java:30)
代码行(我位于我的'Referenced Libraries'文件夹中),同时寻找潜在的行号不匹配(可能有?)。
无论如何,这行代码引用了这个来源:
好像存在某些库版本不匹配或不兼容。我真的不知道如何进一步调试,因为我不是gradle的专家,整个项目结构与GWT的魔力相关。
以下是项目库.. 我强烈认为某些事情不太正确。:
(pastebin link - html文件夹中的build.gradle)
(顶级项目文件夹中的pastebin link - build.gradle)
对此持续了数小时,因此非常感谢任何提示或指导。