LWUIT使用带有混淆器导出时的注意事项

1. 导出异常提示

 

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.

 

原因:LWUIT在GameCanvasImplementation中使用了类似以下的语句:

 

Class.forName("com.siemens.mp.game.Light");

Class.forName("com.motorola.phonebook.PhoneBookRecord");

... ...

 

动态检测第三方API库,可以直接点继续按钮即可。

 

2. 导出的 jar 包异常的大

 

检查项目的 Bulid path 是不是添加了不该有的项目、资源或类库

例如:在Source中添加了项目本身,等等。

 

 

你可能感兴趣的:(api,jar,Class,Path)