问题描述
我已经开发我的应用程序大约两个月了,上周我在尝试从 Eclipse 编译和运行应用程序时开始收到以下错误:
I have been developing my app for around two months, in the last week i have started getting the following error when trying to compile and run the app from Eclipse:
java.io.IOException: Unable to upload file: No space left on device
APK 大小为 3.6Mb,模拟器是最近创建的新模拟器,带有 512Mb SD 卡和与 G1 相同的其他规格.
The APK comes out at 3.6Mb and the emulator is a recently created fresh one with 512Mb SD card and other specs identical to the G1.
任何人都可以提出可能发生这种情况的原因吗?
Can anyone suggest a reason this might be happening?
推荐答案
我以前也遇到过这种情况,我按照 Hedlund 先生的建议创建了一个新的虚拟设备来解决它.我没有花时间试图弄清楚它发生的原因,但是创建新设备允许我的应用程序上传.我的应用程序几乎是您的应用程序的两倍,并且大部分时间都可以正常上传.尝试按照 Hedlund 先生的建议删除并重新创建模拟器.它曾多次为我工作......作为Android开发的新手,我怀疑由于资源泄漏而遇到了这个问题,但我还没有追查这个问题,因为我仍在集中精力让我的应用程序正常工作...希望这会有所帮助!
I've had that happen before, and I solved it by creating a new virtual device as Mr. Hedlund suggests. I didn't spend time trying to figure out why it happened, but creating the new device allowed my app to upload. My application is nearly twice as big as yours, and it uploads fine most of the time. Try deleting and re-creating the emulator as Mr. Hedlund suggests. It's worked for me on several occasions... Being new at Android development, I'm suspicious that I've been running into that issue due to resource leaks, but I haven't chased the problem down yet because I'm still concentrating on getting my app to work correctly... Hope this helps!
这篇关于Android 模拟器上没有剩余空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!