来源:蜘蛛抓取(WebSpider)
时间:2011-09-13 21:46
标签:
4399小游戏
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl错误解决方案
03-30 02:40:41.946:
E/AndroidRuntime(328): FATAL EXCEPTION: main
03-30 02:40:41.946: E/AndroidRuntime(328): java.lang.ClassCastException:
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl
03-30 02:40:41.946: E/AndroidRuntime(328):
com.example.tools.HttpDownloader.GgetInputStream(HttpDownloader.java:71)
03-30 02:40:41.946: E/AndroidRuntime(328):
com.example.tools.HttpDownloader.download(HttpDownloader.java:31)
03-30 02:40:41.946: E/AndroidRuntime(328): &at
com.example.filedownload.FileDownload$downLoadTextFileListener.onClick(FileDownload.java:32)
背景:这是在写文件下载功能的时候报的错,原因在于:
在用eclipse的自动补全功能时把HttpURLConnection写成HttpsURLConnection
参考资料来源:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。