unable to sort ut Dalvik VM error "Conversion to Dalvik format failed with error 1"

by Sundi » Fri, 20 May 2011 09:30:39 GMT


Sponsored Links
 Hi I am trying create a new android project frm an existing (working
demo), as soon as I import there comes an error
"[2011-05-19 12:45:59 -
com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]
Unable to read D:\Profiles\fcht84\My Documents\Downloads\andr\android-
sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: D:
\Profiles\fcht84\My Documents\Downloads\andr\android-sdk-windows
\AndroidManifest.xml (The system cannot find the file specified)
[2011-05-19 12:45:59 -
com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]
Unable to read D:\Profiles\fcht84\My Documents\Downloads\andr\android-
sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: D:
\Profiles\fcht84\My Documents\Downloads\andr\android-sdk-windows
\AndroidManifest.xml (The system cannot find the file specified)
."

After that I try to do clean and rebuild, the error this time is
"UNEXPECTED TOP-LEVEL EXCEPTION:java.util.zip.ZipException: error in
opening zip file android eclipse ....." and finalyy "Conversion to
Dalvik format failed with error 1"

I also tried recreating the project by deleting the existing contents
but the same error is repeating again. May you let me know what might
be a possible solution, in build path unmarked all expect x.y. Mya
Anyone suggest where I am going wrong??

Regards
Jyotirmoy Sundi

-- 



Re: unable to sort ut Dalvik VM error "Conversion to Dalvik format failed with error 1"

by DanH » Fri, 20 May 2011 10:05:00 GMT


 It sounds like you have a corrupted zip file.




-- 


Sponsored Links


Other Threads

1. help with ColorStateList

i've got a layout for a List row entry as:

(i've removed extraneous code)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:background="@color/child_row_color">
...
</LinearLayout>

in the res/color folder, i've got a a file child_row_color.xml

<?xml version="1.0" encoding="UTF-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="#0f0"/>
 </selector>

every time, i try to display the List child row - it craps out in
a android inflator code.

help!

-- 

2. MultiTouch Support

Hi at all,

I have one issues with multitouch features offers by the MotionEvent
class, this is my code:

@Override
    public boolean onTouchEvent(MotionEvent event) {

        [....]
        if(event.getPointerCount() == 1){

                switch (event.getAction()) {

                        case MotionEvent.ACTION_DOWN:
                                finger_one_ID = event.getAction() &
MotionEvent.ACTION_POINTER_ID_MASK;
                        finger_one_X = (int) event.getX(finger_one_ID);
                        finger_one_Y = (int) event.getY(finger_one_ID);
                        renderer.stopTimer();
                        break;

                        case MotionEvent.ACTION_UP:
                                finger_one_ID = NONE;
                                
renderer.setFrictionY(OpenGLRenderer.DEFAULT_FRICTION_Y);
                                
renderer.setFrictionX(OpenGLRenderer.DEFAULT_FRICTION_X);
                                renderer.startTimer();
                                break;

                        case  MotionEvent.ACTION_MOVE:

                        deltaX =  finger_one_X - (int) 
event.getX(finger_one_ID);
                        deltaY =  finger_one_Y - (int) 
event.getY(finger_one_ID);


                        deltaX = Math.abs(deltaX);
                        deltaY = Math.abs(deltaY);
                        distance = (float) ((Math.sqrt(Math.pow(deltaX,2) +
Math.pow(deltaY, 2))));
                        renderer.setFrictionY(OpenGLRenderer.NULL_FRICTION);
                        renderer.setFrictionX(OpenGLRenderer.NULL_FRICTION);



                        if(deltaX > 5.0f && deltaX < 80)
                                renderer.setYacc( (deltaX  / 50));

                        else if(deltaY  > 5.0f && deltaY < 80)
                                renderer.setXacc( (deltaY / 50));

                                break;

                        default:
                                break;

                }



                Log.d(TAG, "Single finger_one_Y:"+finger_one_X);
                        Log.d(TAG, "Single finger_one_Y:"+finger_one_Y);


        }


        else if(event.getPointerCount() == 2){
                Log.d(TAG,"Doppio Tocco");
                switch (event.getAction()) {
                        case MotionEvent.ACTION_POINTER_DOWN:
                                finger_two_ID = MotionEvent.ACTION_POINTER_DOWN 
&
MotionEvent.ACTION_POINTER_ID_MASK;
                                finger_two_X = (int) event.getX(finger_two_ID);
                                finger_two_Y = (int) event.getY(finger_two_ID);
                                multitouch_distance = (float) 
Math.sqrt(Math.pow(finger_one_X -
finger_two_X, 2) + Math.pow(finger_one_Y - finger_two_Y, 2));
                                break;

                        case MotionEvent.ACTION_MOVE:
                                finger_one_X = (int) event.getX(finger_one_ID);
                                finger_one_Y = (int) event.getY(finger_one_ID);
                                finger_two_X = (int) event.getX(finger_two_ID);
                                finger_two_Y = (int) event.getY(finger_two_ID);
                                multitouch_distance_updated = (float)
Math.sqrt(Math.pow(finger_one_X - finger_two_X, 2) +
Math.pow(finger_one_Y - finger_two_Y, 2));
        
Log.d(TAG,"multitouch_distance_updated:"+String.valueOf(multitouch_distance_updated));


                        default:
                                break;
                        }

                Log.d(TAG, "Double finger_one_Y:"+finger_one_X);
                        Log.d(TAG, "Doppio finger_one_Y:"+finger_one_Y);
                        Log.d(TAG, "Doppio finger_two_Y:"+finger_two_X);
                        Log.d(TAG, "Doppio finger_two_Y:"+finger_two_Y);


        }

    }

The problem is that in multitouch branch of my code the X,Y of first
and second finger are the same, therefore the multitouch distance is
even zero!!
I am tried to develop an two fingers zoom...

Any suggestion will be appreciated.

pedr0

-- 

3. Recommended way to update map overlay in background

4. populate ItemizedOverlay when AlertDialog is showing

5. Augmented Reality - AR

6. ADB server didn't ACK, cannot bind tcp...

7. How to differentiate when screen is rotated and when is activity is sent back ( pressing back key)