Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOException when running Android projects in Eclipse

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)
like image 423
mmirate Avatar asked Feb 27 '26 10:02

mmirate


1 Answers

Make sure your manifest file specifies the sdk:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
like image 104
Ricardo Villamil Avatar answered Mar 02 '26 00:03

Ricardo Villamil



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!