1
我想建立一個應用程序,建立兩個wifi功能的android設備之間的P2P連接。我已經將JXTA 2.5庫添加到了android 2.2中,但不知道我在哪裏出錯。結束運行時異常:沒有發現類錯誤和實例沒有找到錯誤。JXTA在android上的應用程序
除了將.jar文件包含到android項目之外,還有其他的工作要做嗎? 要寫入的任何配置?如果是,請讓我知道如何編寫配置文件並將其應用到我的項目中?我正在研究最後一年的項目,所以請讓我知道,如果你有任何關於這方面的指針?
在此先感謝!
這裏是日誌:
04-24 22:41:47.429: I/dalvikvm(556): Could not find method org.apache.log4j.Logger.getLogger, referenced from method net.jxta.peergroup.PeerGroupFactory.<clinit>
04-24 22:41:47.429: W/dalvikvm(556): VFY: unable to resolve static method 8971: Lorg/apache/log4j/Logger;.getLogger (Ljava/lang/String;)Lorg/apache/log4j/Logger;
04-24 22:41:47.441: D/dalvikvm(556): VFY: replacing opcode 0x77 at 0x0010
04-24 22:41:47.461: W/dalvikvm(556): VFY: unable to resolve static field 4047 (ERROR) in Lorg/apache/log4j/Level;
04-24 22:41:47.461: D/dalvikvm(556): VFY: replacing opcode 0x62 at 0x0012
04-24 22:41:47.461: W/dalvikvm(556): VFY: unable to resolve static field 4050 (WARN) in Lorg/apache/log4j/Level;
04-24 22:41:47.461: D/dalvikvm(556): VFY: replacing opcode 0x62 at 0x000c
04-24 22:41:47.469: W/dalvikvm(556): VFY: unable to resolve static field 4048 (FATAL) in Lorg/apache/log4j/Level;
04-24 22:41:47.469: D/dalvikvm(556): VFY: replacing opcode 0x62 at 0x001a
04-24 22:41:47.469: W/dalvikvm(556): VFY: unable to resolve static field 4048 (FATAL) in Lorg/apache/log4j/Level;
04-24 22:41:47.480: D/dalvikvm(556): VFY: replacing opcode 0x62 at 0x0045
它是由Android 2.2支持,我必須採用一些更改,使其在Android 2.2上工作?讓我們知道,如果有事要做。 – 2012-04-25 06:37:08
你好,我試圖通過在Android 2.2項目中添加JXTA 2.7來工作。但結束了這個錯誤: '04-25 07:50:40.950:W/System.err(368):java.util.NoSuchElementException:關鍵'jxta:HTTPTransportAdvertisement'未註冊。 \t 04-25 07:50:40.950:W/System.err(368):\t at net.jxta.util.ClassFactory.getInstantiator(ClassFactory.java:355) \t 04-25 07:50:40.950:W /System.err(368):\t at net.jxta.document.AdvertisementFactory.newAdvertisement(AdvertisementFactory.java:249)' – 2012-04-25 07:56:17