I am using Eclipse DDMS to push a file over onto my Android Emulator sdcard. I select the file and press Open, a dialog pops up and starts pushing the file. In the view "File Explorer" in the DDMS perspective I can see the sdcard directory and can see my file created in it. Then in the popup the progress meter gets halfway then I get this error in the Console window:
[2011-09-22 15:15:56] Failed to push the item(s).
[2011-09-22 15:15:56] (null)
Then the File Explorer completely refreshes and the file disappears. I know the sdcard is setup for 1G of space and the file I am pushing is only 9M.
Here are images during push and after fail.
So what am I doing wrong or what do I need to do to fix this?
Here is the way you fix it. I had a large file about 160M so what was happening it was most likely timing out. So to fix this I went to the Eclipse Windows -> Preferences -> Android -> DDMS then I set the ADB connection time out to 500000 and checked "Thread updates enabled" and checked Heap updates enabled". I was then able to push any file size up to the sdcard. I got the idea after reading this thread
Restart the IDE in some cases in mine I didn't need to.
I know the question is already answered and accepted - but I solved this problem a different way. Sometimes, I'm not quite sure "why" but the ADB needs to be reset.
When your emulator is running, do the following:
You should now be able to push files onto the system fine, as long as your SD card is set to a size that can handle it.
Hope this helps someone!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With