开发者

java import for HttpConnection

开发者 https://www.devze.com 2023-03-11 16:47 出处:网络
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:

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

精彩评论

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

关注公众号