首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在j2me中模糊处理失败

在j2me中模糊处理失败
EN

Stack Overflow用户
提问于 2012-12-10 16:05:32
回答 1查看 456关注 0票数 2

我尝试在j2me..But中混淆我的项目,它显示了以下错误。我才知道这个混淆错误只发生在我导入project..If中的Json.jar时。我移除这个jar意味着混淆是happening..Please,帮我提前解决this..Thanks。

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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文件夹中。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13797088

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档