我怎样才能克服/ AndroidRuntime(331):java.lang.NoClassDefFoundError的:javax.microedition.io.Connector错误的Android? [英] How can I overcome the /AndroidRuntime(331): java.lang.NoClassDefFoundError: javax.microedition.io.Connector error in Android?
问题描述
我现在用的ksoap2-Android的2.5.2 SOAP Web服务登录这样
I am using the ksoap2-android-2.5.2 for SOAP webservices Login like this
HttpTransportBasicAuth aht = new HttpTransportBasicAuth(URL, username , pass);
当我运行程序我得到下面的异常。
When I run the program I get the following exception.
02-08 16:57:27.014: E/AndroidRuntime(331): java.lang.NoClassDefFoundError:
javax.microedition.io.Connector
我怎样才能得到这个类我们KSOAP2库?
How can I get that class to our KSOAP2 Library?
推荐答案
您可能不会使用正确的KSOAP包为Android。
You are probably not using the correct kSoap package for Android.
请参阅这篇文章:<一href=\"http://stackoverflow.com/questions/3072683/java-lang-noclassdeffounderror-javax-microedition-io-connector\">java.lang.NoClassDefFoundError: javax.microedition.io.Connector 及以下<一个href=\"http://$c$c.google.com/p/ksoap2-android/downloads/detail?name=ksoap2-android-assembly-2.4-jar-with-dependencies.jaror-javax-microedition-io-connector\"相对=nofollow>链接
See this post: java.lang.NoClassDefFoundError: javax.microedition.io.Connector and the following link
这篇关于我怎样才能克服/ AndroidRuntime(331):java.lang.NoClassDefFoundError的:javax.microedition.io.Connector错误的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!