Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to install second flutter app on the emulator

People also ask

How do I run a flutter app on a specific emulator?

Creating Connection Choose Device: Open your VS Code and from the bottom right corner of your home screen click on the Flutter Device option. Select Device: When you click on the Flutter Device icon, list of available devices will open up in the command palette. Select the emulator you just created.

How do I increase my emulator storage?

On Android StudioClick Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary. Click Finish.

Can I use Bluestacks for flutter?

Yes, You can connect Flutter to Bluestacks.


You probably configures storage too small and you get this error when the emulator runs out of storage when you install.

Either modify the emulator configuration or uninstall before you install another app.

Open the Android Virtual Device (AVD) manager in Android Studio, edit the emulator and increase "Internal Storage" and restart the emulator.


On android studio
1: Tools > AVD Manager
2: Edit the virtual device
3: Show advenced settings
4: increase internal storage

internal storage


Free-up the space

free space used by emulators / virtual devices

  1. Open Android Studio
  2. Tools > AVD Manager
  3. click menu icon on right side of emulator / virtual device
  4. select Wipe Data
  5. select Yes

There you'll see the space will be free up.

For clarity see the below image, 3+ GB space is freed to 1.0 GB.

enter image description here


Check Free Space on Emulator - adb shell

Your Android Emulator must be running for this to work.

Open a Windows Command Prompt / Mac Terminal.

Go to the directory of the adb.exe program. (Not necessary if you have this in your PATH.)

On Windows (example location):

cd c:\Android\Sdk\platform-tools\

If you only have one running emulator, you don't need to specify which to connect via adb shell, so just run:

adb shell

If you have multiple emulators, you can specify which one after finding the name using

adb devices shows running emulators

enter image description here

Connect to the emulator

adb -s emulator-5554 shell

You'll be presented with a shell prompt inside emulator:

enter image description here

You'll have limited permissions, so switch user to root with command:

su

Use the disk filesystem command to see disk usage & available space

df

enter image description here

If you're running out of space, the Use% on /data will be high. You need to free up space on /data

Free up space by deleting apps you've installed...

Delete Apps in adb shell

Your apps are found in /data/data:

cd /data/data

It's easier to see your apps by reversing the directory listing sort order so your apps will show at bottom:

ls -ltr

enter image description here

You can delete your app directly here using rm -r. In the above example the app is stored under com.mobdev.user_interface_intro:

rm -r /data/data/com.mobdev.user_interface_intro

Repeat for any other apps you want to delete from the emulator to free up space.

Delete App in Emulator

You can also delete the app within the running emulator itself. Click on the Square button > Android Settings (Gear Icon)

Square button > Gear Icon

Click on Apps & Notifications

enter image description here

Find and click on your app

enter image description here

Click on Uninstall

enter image description here

Repeat as necessary for other apps you want to uninstall to free up emulator space.


  1. Open AVD Manager
  2. Wipe Data (delete datas from emulator)
  3. Open emulator
  4. Try to run app