Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Finally, I solved the problem! </p> <p>The steps are, 1. Build the correct wsc-xxx.jar file from github.com/forcedotcom/wsc (Thank you, Superfell!) 2. Generate the jar file from wsdl using the above wsc-xxx.jar. NOTE: using jdk1.6 to generate the target 1.6 jar. (or whatever match the Android SDK level!!) 3. Import the jars into the Android project. </p> <p>I was stuck because I was using jdk1.7 to generate the jar file. However, like what this thread (<a href="https://stackoverflow.com/questions/8748977/android-emulator-crash-dx-bad-class-file-magic-classnotfoundexception-on-st">Android emulator crash: &quot;Dx bad class file magic&quot; / ClassNotFoundException on startup?</a>) said, the Android SDK level is 1.6 (I tried to change to 1.7, the project won't be able to compiled). Therefore, the generated jar file from wsdl won't be able to be packaged in!</p> <p>The eclipse and ADT doesn't give me any warning or error to tell me. I have to build the Android project from command line (see <a href="http://randomsamples.info/blog/phil/android-adt-2101-javalangnoclassdeffounderror-rdimen" rel="nofollow noreferrer">http://randomsamples.info/blog/phil/android-adt-2101-javalangnoclassdeffounderror-rdimen</a>) and noticed the warning,</p> <pre><code>[dx] trouble processing: [dx] bad class file magic (cafebabe) or version (0033.0000) [dx] ...while parsing com/sforce/soap/enterprise/EnterpriseConnection.cla ss [dx] ...while processing com/sforce/soap/enterprise/EnterpriseConnection. class </code></pre> <p>What a process!! </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload