Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Spring Integration

I am facing an issue while trying to use the spring android framework. I have tried the samples according to this link. Actually I can't get it to work. Because when I try to import the spring-android-rest-template-1.0.0.M1.jar and spring-android-commons-logging-1.0.0.M1.jar it gives an error saying

Conversion to Dalvik format failed with error 1

Therefore I was not able to complete the sample program.

I have downloaded the the jar files separately. It gives no errors in the code. But a top level error is generating.

Why is this error occurring, has anyone else got the same issue ?

like image 939
nala4ever Avatar asked Jun 10 '26 13:06

nala4ever


1 Answers

I was getting the same error too, used the solution noted here: "Conversion to Dalvik format failed with error 1" on external JAR removing all libraries from build path, clean and rebuild, then adding just the spring-android-rest-template-1.0.0.BUILD-SNAPSHOT.jar

like image 195
scottyab Avatar answered Jun 13 '26 02:06

scottyab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!