我正在尝试构建一个libGDX应用程序并将 HTML 作为分发目标。
使用 JAR 安装应用程序的安装成功运行。我只勾选了 HTML 作为输出(为了这个问题)并且没有添加任何扩展。这些文件都保留为生成的。
但是每当我尝试构建它时,它都会失败:
[tobias@LapTobTob test]$ ./gradlew html:dist
:html:clean
:html:addSource
:core:compileJava UP-TO-DATE
:core:processResources NO-SOURCE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:html:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:html:processResources NO-SOURCE
:html:compileGwtException in thread "main" java.lang.NoSuchMethodError: com.google.gwt.util.regexfilter.RegexFilter: method <init>()V not found
at com.google.gwt.util.regexfilter.WhitelistRegexFilter.<init>(WhitelistRegexFilter.java:21)
at com.google.gwt.dev.jjs.JJSOptionsImpl.<init>(JJSOptionsImpl.java:54)
at com.google.gwt.dev.PrecompileTaskOptionsImpl.<init>(PrecompileTaskOptionsImpl.java:39)
at com.google.gwt.dev.CompilerOptionsImpl.<init>(CompilerOptionsImpl.java:30)
at com.google.gwt.dev.Compiler.main(Compiler.java:108)
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':html:compileGwt'.
> Process 'command '/usr/lib/jvm/java-8-openjdk/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
6 actionable tasks: 4 executed, 2 up-to-date
千巷猫影
catspeake
相关分类