2013-02-28 57 views
0

我有一個使用Nutiteq地圖的midlet,我在Netbeans中開發它。我添加了庫jar到項目中。一切正常。問題是,當我模糊,我得到這個:Nutiteq Maps JavaMe迷惑錯誤

Note: duplicate definition of library class [javax.microedition.media.control.ToneControl] 
Note: duplicate definition of library class [javax.microedition.media.control.VolumeControl] 
Note: duplicate definition of library class [javax.microedition.media.Control] 
Note: duplicate definition of library class [javax.microedition.media.Controllable] 
Note: duplicate definition of library class [javax.microedition.media.Manager] 
Note: duplicate definition of library class [javax.microedition.media.MediaException] 
Note: duplicate definition of library class [javax.microedition.media.Player] 
Note: duplicate definition of library class [javax.microedition.media.PlayerListener] 
Note: duplicate definition of library class [javax.microedition.media.protocol.DataSource] 
Note: there were 9 duplicate class definitions. 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileConnection 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileSystemRegistry 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileSystemRegistry 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileConnection 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileConnection 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileConnection 
Warning: com.nutiteq.fs.MotoFileSystem: can't find referenced class com.motorola.io.FileConnection 
Warning: com.nutiteq.fs.IDENFileSystem: can't find referenced class com.motorola.io.file.FileConnection 
Warning: com.nutiteq.fs.IDENFileSystem: can't find referenced class com.motorola.io.file.FileConnection 
Warning: com.nutiteq.fs.IDENFileSystem: can't find referenced class com.motorola.io.file.FileConnection 
Warning: com.nutiteq.fs.IDENFileSystem: can't find referenced class com.motorola.io.file.FileConnection 
Warning: com.nutiteq.fs.IDENFileSystem: can't find referenced class com.motorola.io.file.FileConnection 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class com.siemens.mp.game.Light 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class com.motorola.phonebook.PhoneBookRecord 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class com.nokia.mid.ui.FullCanvas 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class net.rim.device.api.system.Application 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class com.mot.iden.util.Base64 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class mmpp.media.MediaPlayer 
    You should check if you need to specify additional program jars. 
Warning: there were 12 unresolved references to classes or interfaces. 
    You may need to specify additional library jars (using '-libraryjars'), 
    or perhaps the '-dontskipnonpubliclibraryclasses' option. 
Error: Please correct the above warnings first. 
Note: there were 6 unresolved dynamic references to classes or interfaces. 

我usign LWUIT庫,但我已經沒有任何問題,直到我包括地圖圖書館。

我做了這個頁面說的話:http://www.nutiteq.com/j2me-maps-forum

現在我得到這樣的:

. 
. 
. 
te: duplicate definition of library class [com.sun.cldc.i18n.uclc.DefaultCaseConverter] 
Note: duplicate definition of library class [com.sun.j2mews.xml.rpc.OperationImpl] 
Note: duplicate definition of library class [com.sun.j2mews.xml.rpc.SOAPDecoder] 
Note: duplicate definition of library class [com.sun.j2mews.xml.rpc.SOAPEncoder] 
Note: duplicate definition of library class [com.sun.ukit.jaxp.Parser] 
Note: duplicate definition of library class [com.sun.ukit.jaxp.ParserFactory] 
Note: duplicate definition of library class [com.sun.ukit.jaxp.ReaderUTF16] 
Note: duplicate definition of library class [com.sun.ukit.jaxp.ReaderUTF8] 
Note: there were 564 duplicate class definitions. 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class com.motorola.phonebook.PhoneBookRecord 
Note: com.sun.lwuit.impl.midp.GameCanvasImplementation: can't find dynamically referenced class mmpp.media.MediaPlayer 
Note: there were 2 unresolved dynamic references to classes or interfaces. 
    You should check if you need to specify additional program jars. 
Unexpected error while evaluating instruction: 
Class  = [a] 
Method  = [a$623fafe4(Ljava/lang/String;CI)[Ljava/lang/String;] 
Instruction = [85] iload_3 v3 
Exception = [java.lang.NullPointerException] (null) 
Unexpected error while performing partial evaluation: 
Class  = [a] 
Method  = [a$623fafe4(Ljava/lang/String;CI)[Ljava/lang/String;] 
Exception = [java.lang.NullPointerException] (null) 
Error: null 

回答

0

重複的課程通常是無害的,但他們表示你的配置指定與包含罐-libraryjars選項兩次相同的課程。刪除這些重複項會更清潔。否則,您可以指定-dontnote來禁止這些註釋。

意外錯誤是ProGuard中的一個錯誤。您應該確保您使用的是最新版本(目前爲4.8或4.9測試版)。如果問題仍然存在,您應該在ProGuard website上報告,或者通過一個小型項目將其郵寄給我,讓我可以重現問題。您可以通過使用-dontoptimize關閉優化來解決此問題。