Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Phonegap - Conversion to Dalvik format failed with error 1

Tags:

android

dalvik

I installed this:

https://github.com/mwbrooks/cordova-plugin-menu

and have cordova 1.8.1 installed.

I copied "libs/phonegap-1.0.0.jar" to ANDROID_PROJECT/libs.

When i try and run the app in the simulator, i get :

"Conversion to Dalvik format failed with error 1"

I believe this is to do with conflicts with libraries, but I don't know what to do to remove the error?

please help.

like image 472
BillyMedia Avatar asked Dec 13 '22 01:12

BillyMedia


1 Answers

I have found myself in the same situation after upgrading from 2.0.0 to 2.1.0

First of all make sure you have reconfigured the build path by removing the JAR from the old PhoneGap version and adding the new one.

At this point I started getting the Dalvik error. Cleaning the build environment didn't help.

So I remove the old jar from the libs directory and voilá, it worked.

like image 76
Menno Bieringa Avatar answered Jan 18 '23 22:01

Menno Bieringa