Alright, so I’ve made an Android app that runs fine on the emulator from Eclipse, but I can’t get it to install on my actual device.
I connect my phone to my PC via USB(USB Debugging enabled), I’ve run
adb shell pm set-install-location 2
and then try running
adb install -s <path to .apk>
1520 KB/s (18699735 bytes in 12.007s) pkg: /sdcard/tmp/<apkname>.apk Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] rm failed for -f, No such file or directory
Why does this happen? I’ve tried installing it both with and without the line:
in the manifest file, but it seems to fail each time, can someone please let me know why and how I can actually get my app to install?
EDIT: I found the .apk file in my android’s tmp folder, and tried installing it from my phone, instead, but I still run into a problem: my phone tells me there’s insufficient storage and it can’t install the app, even though I set the install location to the SD card, which has more than enough space on it to install the apk. So is my phone trying to install the SD card but failing for some reason, or is it instead, for some reason, trying to install to internal storage rather than the SD card, which it should NOT be doing?