You were right , Daniel ! Salesforce classes were the culprit. They are too
heavy and get compiled everytime i start the android project. I had to add
JRE too . That made it even more heavy. I guess i will have to change my
approach.

What is the general pattern followed for android to make any API calls? Is
it REST instead?

Regards
Shuchi

On Thu, Oct 21, 2010 at 5:10 PM, Daniel Drozdzewski <
[email protected]> wrote:

> On Thu, Oct 21, 2010 at 11:29 AM, shuchi <[email protected]> wrote:
> > I am trying to create an Android maps project. Everything was working
> > fine until i added Salesforce classes into it. Now it doesn't even
> > compile. It gives me: Type Conversion to Dalvik format failed: Unable
> > to execute dex: null error.
>
> Shuchi,
>
> The culprits are most likely among Salesforce classes you imported.
> What are you trying to do is to have SOAP consuming client, since
> SForce is accessible through SOAP/WSDL, is this right?
> If it is, you have to be careful when importing various jar files
> precompiled for you to ease the pain of building the stubs yourself.
> Many of those will rely on classes that Android has zero knowledge of
> like RMI (java.rmi.*) or XML RPC (java.xml.rpc.*), which are present
> in Java SE and EE.
>
> You will probably have to bite the bullet and import some SOAP
> library, that could be compiled for Android.
> I am not SOAP user myself, but some people rave about ksoap2 library,
> and luckily for you, it has been adjusted to work with Android:
>
> http://code.google.com/p/ksoap2-android/
>
>
> --
> Daniel
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Shuchi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to