我是 Gluon Mobile 的新手,所以我决定使用 Gluon maven 插件测试 Hello Gluon 样本。 所有示例都可以正常工作,但是如果我想使用 javafx WebView, mvn client:compile 产生编译错误:
警告:中止独立映像构建。 com.oracle.graal.pointsto.constraints.UnresolvedElementException:在解析过程中发现未解析的类型:javafx.scene.web.WebView。要诊断问题,您可以使用 --allow-incomplete-classpath 选项。缺少的类型会在第一次访问时在运行时报告。
重现问题: 平台:windows
在 HelloGluon 示例的 pom.xml 中,我添加了 javafx-web 依赖项:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>${javafx.version}</version>
</dependency>
并且我在 HelloGluonApp.java une init) 方法中添加了一条指令: WebView webView = new WebView();
然后当我运行 mvn client:compile 时,抛出异常: com.oracle.graal.pointsto.constraints.UnresolvedElementException:在解析过程中发现未解析的类型:javafx.scene.web.WebView。
在日志 javafx-base 中,扫描了 javafx-controls 和 javafx-graphics 但除了 javafx-web ????
扫描 C:\Users\BEMAR.gluon\substrate\javafxStaticSdk\16-ea+gvm24\windows-x86_64\sdk\lib\javafx-base.jar
扫描 C:\Users\BEMAR.gluon\substrate\javafxStaticSdk\16-ea+gvm24\windows-x86_64\sdk\lib\javafx-controls.jar
扫描 C:\Users\BEMAR.gluon\substrate\javafxStaticSdk\16-ea+gvm24\windows-x86_64\sdk\lib\javafx-graphics.jar
目前还不支持或者如何在插件的配置中添加这个jar包?
感谢提前。