问题
On a relatively new emulator image (AVD) I have about 40mb of free space. How can I expand this?
UPDATE: Just to be clear... I'm talking about the "Internal phone storage" size, not the SD Card size.
回答1:
I think:
$ emulator -partition-size <number of megabytes>
is what you're looking for. I tried a few different values in the emulator and the "internal phone storage" setting seemed to reflect the values I passed in.
回答2:
If you're talking about the SD card size, I believe you'll need to make a new SD card file of a larger file, then load your AVD using the new SD card you've created. They have instructions on how to create an SD card (and load it into an AVD) here: http://developer.android.com/guide/developing/tools/emulator.html#creatingm
Essentially, make the SD card:
$ mksdcard <size> <file>
Then load it into your emulator using the -sdcard
argument:
$ emulator -sdcard <filepath>
来源:https://stackoverflow.com/questions/1923526/expanding-the-size-of-an-android-virtual-device-emulator-instance