看起来Gradle正在用Integer对象包装int值,因此我得到了以下错误:
No signature of method: static org.gradle.plugins.javascript.envjs.http.simple.SimpleHttpFileServerFactory.start() is applicable for argument types: (java.io.File, java.lang.Integer) values: [/Users/lex/Documents/github/proj/build/distributions, 8001]我尝试直接使用变量而不是8001,但它也没有工作:
向start方法传递int值的正确方法是什么?
发布于 2017-08-30 22:28:24
下面的代码对我很好,
SimpleHttpFileServerFactory factory = new SimpleHttpFileServerFactory()
server = factory.start(new File("..dir..."), (int)port)https://stackoverflow.com/questions/45970455
复制相似问题