2013-05-30 37 views
1

Everyone: 我開發了一個項目,它運行在j2me平臺上。當我使用proguard時,它警告我下面的事情,任何人都可以幫忙?使用proguard時,Warning:無法在類javax.microedition.lcdui.List中找到引用方法'void deleteAll()'

Initializing... 
Warning: BtPrinterScreen: can't find referenced method 'void deleteAll()' in class javax.microedition.lcdui.List 
Warning: BuyScreenNo: can't find referenced method 'void setTitle(java.lang.String)' in class javax.microedition.lcdui.Displayable 
Warning: BuyScreenNo2: can't find referenced method 'void setTitle(java.lang.String)' in class javax.microedition.lcdui.Displayable 
Warning: BuyScreenNo3: can't find referenced method 'void setTitle(java.lang.String)' in class javax.microedition.lcdui.Displayable 
Warning: DecodeCanvas: can't find referenced method 'int getWidth()' in class javax.microedition.lcdui.Displayable 
Warning: DecodeCanvas: can't find referenced method 'int getHeight()' in class javax.microedition.lcdui.Displayable 
Warning: MenuScreen: can't find referenced method 'void deleteAll()' in class javax.microedition.lcdui.List 
Warning: MenuScreen: can't find referenced method 'boolean platformRequest(java.lang.String)' in class javax.microedition.midlet.MIDlet 
Warning: ResultScreen: can't find referenced method 'void setFont(javax.microedition.lcdui.Font)' in class javax.microedition.lcdui.StringItem 
Warning: ResultScreen2: can't find referenced method 'void setFont(javax.microedition.lcdui.Font)' in class javax.microedition.lcdui.StringItem 
Warning: there were 10 unresolved references to program class members. 

等待你的幫助,永遠在線。

回答

0

deleteAll方法在MIDP 2.0中添加。請務必使用此版本或更高版本。

+0

謝謝你閱讀我的問題,但我想告訴你我已經解決了這個問題。分享給大家。 我一個,和測試添加jar包一個,所以我發現在sametime.Like不能添加相同的包以下文件: cldcapi10.jar cldcapi11.jar 只需添加一個是fine.And也喜歡 midpapi10 .jar midpapi20.jar midpapi21.jar 只需添加最後一個就可以了,我的問題就是這個原因,當我剛剛添加最後一個,並且測試還行,那麼讓我開心。 這只是適合這個問題,但其他人可以嘗試這種方法,但也許可以工作,祝你好運。 – littleluo

相關問題