Question

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)
Was it helpful?

Solution

Make sure your manifest file specifies the sdk:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>

OTHER TIPS

In fact, the APK file has not been generated. Try to see if there are compiling errors. If not, try to compile the project by yourself. You can read these interesting articles:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top