我无法运行运行JavaFXPorts示例应用程序,例如HelloWorld。我使用gradle :HelloWorld:androidInstall
。模拟器中的编译和安装顺利。但是,当我尝试运行应用程序时,我得到了空白的黑屏。 logcat显示错误:
java.lang.UnsupportedOperationException: Pixel format BYTE_BGRA_PRE not supported on this device
at com.sun.prism.es2.ES2Texture.create(ES2Texture.java:102)
at com.sun.prism.es2.ES2ResourceFactory.createTexture(ES2ResourceFactory.java:138)
at com.sun.prism.es2.ES2ResourceFactory.createTexture(ES2ResourceFactory.java:132)
at com.sun.prism.impl.ps.PaintHelper.initGradientTextures(PaintHelper.java:118)
at com.sun.prism.impl.ps.PaintHelper.getGradientTexture(PaintHelper.java:141)
at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:440)
at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:375)
at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:842)
at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:601)
at com.sun.prism.impl.ps.BaseShaderGraphics.fillRoundRect(BaseShaderGraphics.java:1557)
at com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectanglesDirectly(NGRegion.java:1119)
at com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectangle(NGRegion.java:848)
at com.sun.javafx.sg.prism.NGRegion.renderAsRectangle(NGRegion.java:751)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:572)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2053)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1945)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:235)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:576)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2053)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1945)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:477)
at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:330)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:91)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:279)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
at java.lang.Thread.run(Thread.java:818)
我正在使用模拟器Nexus 5X API 21 / arm。这与模拟器设置有关吗?