如何在没有错误的情况下进行重新安装?

时间:2016-11-06 13:56:14

标签: java android apache

现在是时候先做一点点了。在构建过程中我遇到了这样的错误

  

信息:Gradle任务[:Application:assembleRelease]   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到超类或接口java.awt.datatransfer.Transferable   警告:org.apache.harmony.awt.datatransfer.NativeClipboard:找不到超类或接口java.awt.datatransfer.Clipboard   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator:找不到引用的类javax.security.sasl.Sasl   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator:找不到引用的类javax.security.sasl.SaslClient   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator:找不到引用的类javax.security.sasl.SaslException   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator:找不到引用的类javax.security.sasl.SaslClient   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator:找不到引用的类javax.security.sasl.SaslException   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.auth.callback.NameCallback   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.sasl.RealmCallback   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.sasl.RealmChoiceCallback   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.auth.callback.NameCallback   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.sasl.RealmCallback   警告:com.sun.mail.imap.protocol.IMAPSaslAuthenticator $ 1:无法找到引用的类javax.security.sasl.RealmChoiceCallback   警告:javax.activation.CommandInfo:找不到引用的类java.beans.Beans   警告:org.apache.harmony.awt.ContextStorage:找不到引用的类java.awt.Toolkit   警告:org.apache.harmony.awt.ContextStorage:找不到引用类java.awt.GraphicsEnvironment   警告:org.apache.harmony.awt.ContextStorage:找不到引用的类java.awt.Toolkit   警告:org.apache.harmony.awt.ContextStorage:找不到引用类java.awt.GraphicsEnvironment   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.dnd.DropTargetContext   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.dnd.peer.DropTargetContextPeer   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.dnd.DragGestureEvent   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.dnd.peer.DragSourceContextPeer   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DTK:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataProvider:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.Transferable   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到引用的类java.awt.datatransfer.UnsupportedFlavorException   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.Image   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到引用的类java.awt.datatransfer.UnsupportedFlavorException   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到引用的类java.awt.image.DirectColorModel   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到引用的类java.awt.image.DataBufferInt   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.Raster   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.ComponentColorModel   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.color.ColorSpace   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.ComponentColorModel   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.DataBufferByte   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.Raster   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.DataBufferUShort   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.Image   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataProxy:无法找到引用的类java.awt.image.ColorModel   警告:org.apache.harmony.awt.datatransfer.DataProxy:找不到引用的类java.awt.image.WritableRaster   警告:org.apache.harmony.awt.datatransfer.DataSnapshot:无法找到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataSnapshot:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.Transferable   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.Transferable   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.Image   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.Image   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.Graphics   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.image.WritableRaster   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.DataBufferInt   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.Transferable   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.Image   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.Graphics   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.BufferedImage   警告:org.apache.harmony.awt.datatransfer.DataSource:无法找到引用的类java.awt.image.DataBufferInt   警告:org.apache.harmony.awt.datatransfer.DataSource:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.Point   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:找不到引用的类java.awt.dnd.DragSourceEvent   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:找不到引用的类java.awt.dnd.DragSourceDropEvent   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:找不到引用的类java.awt.dnd.DragSourceDragEvent   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.Point   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.Point   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.Point   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.dnd.DragSourceContext   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:无法找到引用的类java.awt.Point   警告:org.apache.harmony.awt.datatransfer.DragSourceEventProxy:找不到引用的类java.awt.dnd.DragSourceDragEvent   警告:org.apache.harmony.awt.datatransfer.FlavorsComparator:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.NativeClipboard:找不到引用类java.awt.datatransfer.Clipboard   警告:org.apache.harmony.awt.datatransfer.TextFlavor:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.TextFlavor:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.TextFlavor:找不到引用的类java.awt.datatransfer.DataFlavor   警告:org.apache.harmony.awt.datatransfer.TextFlavor:找不到引用的类java.awt.datatransfer.SystemFlavorMap   警告:org.apache.harmony.awt.datatransfer.TextFlavor:找不到引用的类java.awt.datatransfer.DataFlavor   警告:有247个未解析的类或接口引用。   警告:处理任务java.io.IOException时发生异常:请先纠正上述警告。   错误:任务执行失败':应用程序:transformClassesAndResourcesWithProguardForRelease'。   java.io.IOException:请先纠正上面的警告。   信息:建筑失败   信息:总时间:18.423秒   信息:1错误   信息:110警告   信息:请参阅控制台中的完整输出

并且无法解决如何修复它们的问题?

你能帮助我吗

提前致谢

1 个答案:

答案 0 :(得分:1)

您似乎正在使用Apache Harmony库,该库使用Java AWT。 java.awt包不是Android的一部分。您不能使用依赖于java.awt包的代码或库。

Warning:org.apache.harmony.awt.datatransfer.DataProxy.
can't find superclass or interface java.awt.datatransfer.Transferable

另见:

How to add java.awt.image package in Android

Using awt with android

Porting AWT graphics code to Android