Skip to content Skip to sidebar Skip to footer

How Can I Overcome The /androidruntime(331): Java.lang.noclassdeffounderror: Javax.microedition.io.connector Error In Android?

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 g

Solution 1:

This is error can also be raised if you have more than one Activity and if you try to access one Activity without Registering in the AndroidManifest.xml file. So make sure that you have registered all your Activity class under this xml file. eg. if u have an activity called Act you will register as

<application...............>
   ----------
   ----------
    <activityandroid:name=".Act2" /> here goes your registration.    
</application>

Solution 2:

You are probably not using the correct kSoap package for Android.

See this post: java.lang.NoClassDefFoundError: javax.microedition.io.Connector and the following link

Solution 3:

This class is not in android, its in j2me.

Post a Comment for "How Can I Overcome The /androidruntime(331): Java.lang.noclassdeffounderror: Javax.microedition.io.connector Error In Android?"