开发者

java import for HttpConnection

My code has an error that says HttpConnection cannot be resolved. The documentation says it is in the javax.microedition.io package, so I tried:

import javax.microedition.io; 

That results in an error stating only a type can be resolved. Using quick fix results in:

 import j开发者_开发问答avax.microedition.io.*;

I’m assuming something is wrong with the imports?


The second import should solve your problem with resolving HttpConnection. However, HttpConnection is an interface. Are you using it as a class?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜