sansarip / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

Conversion to Dalvik format failed with error 1 #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add the 2.5.2 jars with dependencies to eclipse as external jar.
2.Watch the console log: Conversion to Dalvik format failed with error 1

What is the expected output? What do you see instead?
Thats i dont receive this error

What version of the product are you using? On what operating system?
2.5.2 on windows 7 64bit, using eclipse 3.6 EE version

Please provide any additional information below.

Original issue reported on code.google.com by iskandar...@gmail.com on 8 Jan 2011 at 8:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
When adding all the sources files included in the 2.5.2 
ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar the same error occurs 
for axis classes and commons logging classes (which eclipse adds automagically).

Original comment by hielke.hoeve on 14 Jan 2011 at 9:53

GoogleCodeExporter commented 8 years ago
I am getting this exact same error/issue 

running xubuntu 10.10 maverick, 

Eclipse Galileo 

Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343

Original comment by Mattbraa...@gmail.com on 19 Jan 2011 at 3:54

GoogleCodeExporter commented 8 years ago
Does that result in any actual failure in terms of the build failing or the 
application not working or is is just a warning. Also do you have some more 
details about the error message. And does it only occur in Eclipse or also with 
the ant based build?

Original comment by mosa...@gmail.com on 19 Jan 2011 at 4:14

GoogleCodeExporter commented 8 years ago
I am getting the same error!!!. Because of this I am not able to build my App. 
I have tried by removing the class files for which the error is getting 
generated, but it seems that I need to remove almost everything from the jar. I 
am attaching the compile error log from eclipse.

Original comment by deepanja...@gmail.com on 28 Jan 2011 at 10:52

Attachments:

GoogleCodeExporter commented 8 years ago
Let me ask again. Does the ant build work?

Original comment by mosa...@gmail.com on 29 Jan 2011 at 12:21

GoogleCodeExporter commented 8 years ago
Same problem here. Console-Output added. 
How can I test the ant build ?

Original comment by scholesch on 30 Jan 2011 at 11:01

Attachments:

GoogleCodeExporter commented 8 years ago
Something like android update project.. see more at

http://developer.android.com/guide/developing/other-ide.html

Original comment by mosa...@gmail.com on 31 Jan 2011 at 5:15

GoogleCodeExporter commented 8 years ago
I try this:

android update project --name <project_name> --target <target_ID>
--path <path_to_your_project> 

2 files updated - same problem.

What's about the zip-Error ? (see: console.txt/comment 7)

Original comment by scholesch on 31 Jan 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Solved here. Jar-File was corrupt.

Original comment by scholesch on 1 Feb 2011 at 6:25

GoogleCodeExporter commented 8 years ago
How so? Did you follow the download instructions on the wiki or downloaded in 
some other way? 

Original comment by mosa...@gmail.com on 1 Feb 2011 at 6:31

GoogleCodeExporter commented 8 years ago
Can everybody having this problem please retest following the download 
instructions for the lib file from here:

http://code.google.com/p/ksoap2-android/wiki/HowToUse

If the problem is solved I will close the issue. Otherwise I have to 
investigate at some stage.

Original comment by mosa...@gmail.com on 3 Feb 2011 at 6:28

GoogleCodeExporter commented 8 years ago
I have tried with ant and it works. But with ADT it is not working. Is the 
ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar updated???(The change 
log still says last updated on Nov 01, 2010.

Thanks
Deepanjan

Original comment by deepanja...@gmail.com on 10 Feb 2011 at 8:06

GoogleCodeExporter commented 8 years ago
Try with the new release 2.5.4

Original comment by mosa...@gmail.com on 15 Feb 2011 at 6:14

GoogleCodeExporter commented 8 years ago
I tired with all the versions and I still keep getting the error : 

Conversion to Dalvik format failed with error 1

A closer look at the logs indicates that the file is an invalid archive. I 
tried downloading all the jar files and the error was the same. On inspecting 
further, it seems that the jar files being generated are corrupt. Please 
correct me if I am wrong.

You can try downloading any jar file and attemp to view or extract the contents 
using an archiver such as winrar and see what I am talking about.

Original comment by kibw...@gmail.com on 18 Feb 2011 at 8:34

GoogleCodeExporter commented 8 years ago
I just downloaded the file from 
http://code.google.com/p/ksoap2-android/source/browse/m2-repo/com/google/code/ks
oap2-android/ksoap2-android-assembly/2.5.4/ksoap2-android-assembly-2.5.4-jar-wit
h-dependencies.jar

as documented on the download page (right click on view raw file - save link 
as) and extracted the file just fine with

jar -xf ksoap2-android-assembly-2.5.4-jar-with-dependencies.jar

How are you doing this? It works fine on Mac and Ubuntu.

Original comment by mosa...@gmail.com on 19 Feb 2011 at 12:39

GoogleCodeExporter commented 8 years ago
I was following the same steps on a windows 7 professional machine.

1. Right click on file
2. Click on save link as
3. Select destination as my desktop
4. Try to add it as a library or view the contents

Original comment by kibw...@gmail.com on 19 Feb 2011 at 4:27

GoogleCodeExporter commented 8 years ago
No.. NOT right click on the file. Right click on the link that say "View raw 
file" ...

Original comment by mosa...@gmail.com on 19 Feb 2011 at 5:35

GoogleCodeExporter commented 8 years ago
Or try this command:

wget 
http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/
ksoap2-android-assembly/2.5.4/ksoap2-android-assembly-2.5.4-jar-with-dependencie
s.jar

you should get a file of 146kB size.

Original comment by mosa...@gmail.com on 19 Feb 2011 at 5:46

GoogleCodeExporter commented 8 years ago
  i download the jar ,  using this link http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/2.5.4/ksoap2-android-assembly-2.5.4-jar-with-dependencies.jar  or also click in View raw file...
i got always this error in Eclipse : 
[2011-03-23 17:22:02 - Dex Loader] Unable to execute dex: wrapper was not 
properly loaded first
[2011-03-23 17:22:02 - xxxxxxx ] Conversion to Dalvik format failed: Unable to 
execute dex: wrapper was not properly loaded first

Conversion to Dalvik format failed: Unable to execute dex: wrapper was not 
properly loaded first   xxxxx       Unknown Android Packaging Problem

Original comment by issa...@gmail.com on 23 Mar 2011 at 4:26

GoogleCodeExporter commented 8 years ago
i solve the problem ... 
i start eclipse as administrator (shift right click :) ..) ....
after i clean project  and it works fine ....
thanks 

Original comment by issa...@gmail.com on 23 Mar 2011 at 4:57

GoogleCodeExporter commented 8 years ago
All user errors that have nothing to do with ksoap the code base.

Original comment by mosa...@gmail.com on 23 Mar 2011 at 6:23

GoogleCodeExporter commented 8 years ago
you are downloading the file in the wrong way (instructions are very 
confusing), here is the link for the jar

http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/
ksoap2-android-assembly/2.5.4/ksoap2-android-assembly-2.5.4-jar-with-dependencie
s.jar

next time look here

http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/
ksoap2-android-assembly/

Original comment by david.vi...@gmail.com on 9 May 2011 at 10:35

GoogleCodeExporter commented 8 years ago
If you have a better way to write the instructions feel free to do so! Either 
comment on the page or request wiki write access.

Original comment by mosa...@gmail.com on 9 May 2011 at 11:21

GoogleCodeExporter commented 8 years ago
When i attach ksoap2-android-assembly 2.5.7 jar then it get force close please 
suggest me why this problem occures.

Original comment by android....@gmail.com on 27 Jul 2011 at 8:15

GoogleCodeExporter commented 8 years ago
You have not downloaded the file properly. Read the instructions on the website.

Original comment by mosa...@gmail.com on 2 Aug 2011 at 6:01