我们尝试使用免费的Apple开发者帐户将我们编写的应用程序部署到iOS设备上。 为了部署项目,我们开始使用gradle任务" ios",但这总是显示很多警告并且永远不会结束...... 警告通常包括" java.awt。*",而星号代表类名。但是,我们只是在JavaFX中进行编码,如果我们使用任何awt类,我们再次检查......我们不会。
我们也尝试过运行" launchIPhoneSimulator"和" launchIOSDevice"但没有成功。
Java SDK版本为1.8_151,使用gluon down 3.6.0,魅力版本2.0.1,javafxports:jfxmobile-plugin:1.3.8。
MacBook Pro(2015年初,i7,16 GB内存)High Sierra与运行iOS 11.0.3的iPhone 6结合使用。
我们做错了什么提示? 任何帮助表示赞赏: - )
编辑:这是控制台输出:
14:16:29: Executing external task 'ios'...
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:createDefaultIOSLauncher UP-TO-DATE
:compileIosJava UP-TO-DATE
:processIosResources UP-TO-DATE
:iosClasses UP-TO-DATE
:iosExtractNativeLibs UP-TO-DATE
:createIpa
Root pattern javax.annotations.**.* matches no classes
Root pattern javax.inject.**.* matches no classes
Warning: javax.xml.bind.annotation.XmlRootElement is a phantom class!
Warning: java.nio.file.StandardOpenOption is a phantom class!
Warning: java.nio.file.FileSystem is a phantom class!
Warning: java.nio.file.OpenOption is a phantom class!
Warning: java.nio.file.FileSystems is a phantom class!
Warning: com.oracle.jrockit.jfr.TimedEvent is a phantom class!
Warning: com.oracle.jrockit.jfr.EventToken is a phantom class!
Warning: com.oracle.jrockit.jfr.ValueDefinition is a phantom class!
Warning: com.oracle.jrockit.jfr.EventDefinition is a phantom class!
Warning: com.oracle.jrockit.jfr.Producer is a phantom class!
Warning: com.oracle.jrockit.jfr.FlightRecorder is a phantom class!
Warning: sun.nio.ch.DirectBuffer is a phantom class!
Warning: java.util.stream.Stream is a phantom class!
Warning: java.awt.Font is a phantom class!
Warning: java.awt.Graphics2D is a phantom class!
Warning: java.awt.image.BufferedImage is a phantom class!
Warning: java.awt.MultipleGradientPaint$CycleMethod is a phantom class!
Warning: java.awt.geom.AffineTransform is a phantom class!
Warning: java.awt.geom.Path2D is a phantom class!
Warning: java.awt.geom.Rectangle2D$Float is a phantom class!
Warning: java.awt.geom.Ellipse2D is a phantom class!
Warning: java.awt.geom.RoundRectangle2D is a phantom class!
Warning: java.awt.geom.Line2D is a phantom class!
Warning: java.awt.geom.Rectangle2D is a phantom class!
Warning: java.awt.Color is a phantom class!
Warning: java.awt.Paint is a phantom class!
Warning: java.awt.Stroke is a phantom class!
Warning: java.awt.Rectangle is a phantom class!
Warning: java.awt.Shape is a phantom class!
Warning: java.awt.AlphaComposite is a phantom class!
Warning: java.awt.image.SampleModel is a phantom class!
Warning: java.awt.image.DataBufferInt is a phantom class!
Warning: java.awt.image.Raster is a phantom class!
Warning: java.awt.image.SinglePixelPackedSampleModel is a phantom class!
Warning: java.awt.image.WritableRaster is a phantom class!
Warning: java.awt.image.DataBuffer is a phantom class!
Warning: java.awt.GraphicsEnvironment is a phantom class!
Warning: java.awt.geom.Line2D$Float is a phantom class!
Warning: java.awt.MultipleGradientPaint is a phantom class!
Warning: java.awt.geom.Path2D$Float is a phantom class!
Warning: java.awt.BasicStroke is a phantom class!
Warning: java.awt.font.GlyphVector is a phantom class!
Warning: java.awt.LinearGradientPaint is a phantom class!
Warning: java.awt.geom.Point2D$Float is a phantom class!
Warning: java.awt.font.FontRenderContext is a phantom class!
Warning: java.util.concurrent.ConcurrentHashMap$KeySetView is a phantom class!
Warning: java.awt.RenderingHints$Key is a phantom class!
Warning: java.awt.GradientPaint is a phantom class!
Warning: java.awt.geom.Point2D is a phantom class!
Warning: java.awt.RenderingHints is a phantom class!
Warning: java.awt.image.ImageObserver is a phantom class!
Warning: java.awt.geom.NoninvertibleTransformException is a phantom class!
Warning: java.awt.Composite is a phantom class!
Warning: java.awt.Image is a phantom class!
Warning: java.awt.Graphics is a phantom class!
Warning: java.awt.geom.Ellipse2D$Float is a phantom class!
Warning: java.awt.TexturePaint is a phantom class!
Warning: java.awt.geom.RoundRectangle2D$Float is a phantom class!
Warning: java.awt.geom.PathIterator is a phantom class!
Warning: java.awt.PaintContext is a phantom class!
Warning: java.awt.image.ColorModel is a phantom class!
Warning: java.awt.geom.GeneralPath is a phantom class!
Warning: java.awt.image.DataBufferByte is a phantom class!
Warning: java.awt.geom.Point2D$Double is a phantom class!
Warning: java.awt.geom.Area is a phantom class!
Warning: javax.print.attribute.AttributeSet is a phantom class!
Warning: javax.print.PrintService is a phantom class!
Warning: javax.print.DocFlavor is a phantom class!
Warning: javax.print.PrintServiceLookup is a phantom class!
Warning: java.awt.print.PrinterJob is a phantom class!
Warning: javax.print.attribute.PrintRequestAttributeSet is a phantom class!
Warning: javax.print.attribute.standard.SheetCollate is a phantom class!
Warning: javax.print.attribute.standard.Chromaticity is a phantom class!
Warning: javax.print.attribute.standard.OrientationRequested is a phantom class!
Warning: javax.print.attribute.standard.PrinterResolution is a phantom class!
Warning: javax.print.attribute.standard.PrintQuality is a phantom class!
Warning: javax.print.attribute.standard.Media is a phantom class!
Warning: javax.print.attribute.standard.MediaTray is a phantom class!
Warning: javax.print.attribute.standard.MediaSizeName is a phantom class!
Warning: java.awt.print.Pageable is a phantom class!
Warning: java.awt.print.Printable is a phantom class!
Warning: javax.print.attribute.standard.CopiesSupported is a phantom class!
Warning: javax.print.attribute.HashPrintRequestAttributeSet is a phantom class!
Warning: javax.print.attribute.ResolutionSyntax is a phantom class!
Warning: javax.print.attribute.standard.Copies is a phantom class!
Warning: javax.print.attribute.standard.Sides is a phantom class!
Warning: javax.print.attribute.standard.MediaPrintableArea is a phantom class!
Warning: java.awt.print.PageFormat is a phantom class!
Warning: javax.print.attribute.standard.MediaSize is a phantom class!
Warning: javax.print.attribute.standard.PageRanges is a phantom class!
Warning: javax.print.attribute.Attribute is a phantom class!
Warning: javax.print.attribute.Size2DSyntax is a phantom class!
Warning: java.awt.print.PrinterException is a phantom class!
Warning: javax.print.attribute.standard.DialogTypeSelection is a phantom class!
Warning: java.awt.Transparency is a phantom class!
Warning: java.awt.image.DirectColorModel is a phantom class!
Warning: java.awt.print.Paper is a phantom class!
Warning: java.nio.file.FileSystemNotFoundException is a phantom class!
编辑:已解决 - 如果您遇到同样的问题,请按照以下评论中的步骤进行操作。
答案 0 :(得分:0)
为什么要隐藏我们最重要的信息? * s可能会提示出现了什么问题。一些JavaFX类在内部使用AWT。例如打印。你的代码中有这样的东西吗?