我尝试在j2me..But中混淆我的项目,它显示了以下错误。我才知道这个混淆错误只发生在我导入project..If中的Json.jar时。我移除这个jar意味着混淆是happening..Please,帮我提前解决this..Thanks。
Warning: org.json.me.JSONArray: can't find referenced method 'java.lang.Object remove(int)' in class java.util.Vector
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile them and try again.
Alternatively, you may have to specify the options
'-dontskipnonpubliclibraryclasses' and/or
'-dontskipnonpubliclibraryclassmembers'.
Error: Please correct the above warnings first.
C:\Users\Ponmani\Documents\TThehinduNov22ponmani\nbproject\build-impl.xml:427: Obfuscation failed with error code 1.
BUILD FAILED (total time: 4 seconds)发布于 2012-12-10 19:19:45
出现此错误的原因是,JSONArray类使用了Vector类中的remove(int)方法,但此方法不适用于Java:http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/java/util/Vector.html
您选择了该库的Java Se版本。请尝试另一个库:https://github.com/upictec/org.json.me/
更新
有一个ZIP按钮,您可以在其中以zip文件的形式下载存储库。
在zip文件中输入/src/main/java。
复制org文件夹并将其粘贴到src文件夹中。
https://stackoverflow.com/questions/13797088
复制相似问题