Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Netbeans Nutiteq映射JavaMe混淆错误_Netbeans_Java Me_Maps_Obfuscation_Proguard - Fatal编程技术网

Netbeans Nutiteq映射JavaMe混淆错误

Netbeans Nutiteq映射JavaMe混淆错误,netbeans,java-me,maps,obfuscation,proguard,Netbeans,Java Me,Maps,Obfuscation,Proguard,我有一个使用Nutiteq映射的midlet,我在Netbeans中开发了它。我将库jar添加到项目中。一切正常。问题是,当我混淆时,我会得到: Note: duplicate definition of library class [javax.microedition.media.control.ToneControl] Note: duplicate definition of library class [javax.microedition.media.control.VolumeCo

我有一个使用Nutiteq映射的midlet,我在Netbeans中开发了它。我将库jar添加到项目中。一切正常。问题是,当我混淆时,我会得到:

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.
.
.
.
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
我正在使用lwuit库,但在包含地图库之前,我没有任何问题

我做了本页所说的:

现在我明白了:

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.
.
.
.
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

重复的类通常是无害的,但它们表明您的配置使用两次包含相同类的JAR指定了-libraryjars选项。删除这些重复项会更干净。否则,可以指定-dontnote以抑制这些注释

意外错误是ProGuard中的错误。您应该确保使用的是最新版本(目前为4.8或4.9测试版)。如果问题仍然存在,您应该在上报告或邮寄给我,并提供一个小项目,让我重现问题。您可能可以通过使用-dontoptimize关闭优化来解决此问题