views:

604

answers:

3

Every time I try to run an Android project from Eclipse with the Android plugin (Run -> Run), the emulator starts up just fine, but the upload fails, and the Console puts out this error message:

[2010-06-17 08:17:55 - HelloAndroid] Failed to upload HelloAndroid.apk on device 'emulator-5554'
[2010-06-17 08:17:55 - HelloAndroid] java.io.IOException: Unable to upload file: Local file doesn't exist.
[2010-06-17 08:17:55 - HelloAndroid] Launch canceled!

It seems as though the apk compilation is failing, but there are no other errors in the Console at all except for a lone warning about the project not specifying an API Level requirement:

[2010-06-17 08:17:55 - HelloAndroid] WARNING: Application does not specify an API level requirement!
[2010-06-17 08:17:55 - HelloAndroid] Device API version is 8 (Android 2.2)
A: 

In fact, the APK file is not been generated. Try to see if there are compiling errors... if not, try to compile the proyect by your self. You can read this interesting articles:

Cristian
There's nothing in the bottom pane labeled "Console", would I see a pop-up error message or would it be in some other place if there was a compilation error?
Bushman
+1  A: 

Make sure your manifest file specifies the sdk:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
Ricardo Villamil
Where do I put that line? Directly under the root `<manifest>` tag, under the `<application>` tag, or under the `<activity>` tag?
Bushman
anywhere inside the <manifest> tag, but not inside <application>
Ricardo Villamil
I put it directly under the `<application>` tag, and though the console prints no error messages, the program doesn't show on the emulator at all.EDIT: Oh, just saw that comment. I'll try again.EDIT2: OK, it still doesn't work.
Bushman
For some reason, when I pressed the menu key on the emulator, the program popped up. I'll have to remember that. Thank you so much!
Bushman
Glad it worked ;) please don't forget to up vote!
Ricardo Villamil
A: 

I had a Windows-generated Thumbs.db file in my project. Once I deleted that, it worked.