Thursday, October 21, 2010

Re: [android-developers] Type Conversion to Dalvik format failed: Unable to execute dex: null

On Thu, Oct 21, 2010 at 11:29 AM, shuchi <shuchimuley@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate