Error when trying to install second flutter app on the emulator












1















I created a simple flutter app and run it on android emulator. It worked Ok. Now I created another one and when I'm trying to run it on the emulator I'm getting:



 Error: ADB exited with exit code 1
adb: failed to install /Users/Admin/Development/flutter/flutter_app_test/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on Android SDK built for x86.


Once I delete the first app from emulator I'm able to install the second one and run it successfully.



So anytime I have one flutter app installed on the emulator installing another one will lead to the same error.



Is there a way to overcome this limitation? Or this is a bug?










share|improve this question





























    1















    I created a simple flutter app and run it on android emulator. It worked Ok. Now I created another one and when I'm trying to run it on the emulator I'm getting:



     Error: ADB exited with exit code 1
    adb: failed to install /Users/Admin/Development/flutter/flutter_app_test/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
    Error launching application on Android SDK built for x86.


    Once I delete the first app from emulator I'm able to install the second one and run it successfully.



    So anytime I have one flutter app installed on the emulator installing another one will lead to the same error.



    Is there a way to overcome this limitation? Or this is a bug?










    share|improve this question



























      1












      1








      1








      I created a simple flutter app and run it on android emulator. It worked Ok. Now I created another one and when I'm trying to run it on the emulator I'm getting:



       Error: ADB exited with exit code 1
      adb: failed to install /Users/Admin/Development/flutter/flutter_app_test/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
      Error launching application on Android SDK built for x86.


      Once I delete the first app from emulator I'm able to install the second one and run it successfully.



      So anytime I have one flutter app installed on the emulator installing another one will lead to the same error.



      Is there a way to overcome this limitation? Or this is a bug?










      share|improve this question
















      I created a simple flutter app and run it on android emulator. It worked Ok. Now I created another one and when I'm trying to run it on the emulator I'm getting:



       Error: ADB exited with exit code 1
      adb: failed to install /Users/Admin/Development/flutter/flutter_app_test/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
      Error launching application on Android SDK built for x86.


      Once I delete the first app from emulator I'm able to install the second one and run it successfully.



      So anytime I have one flutter app installed on the emulator installing another one will lead to the same error.



      Is there a way to overcome this limitation? Or this is a bug?







      android flutter






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 18:15









      Fantômas

      32.8k156490




      32.8k156490










      asked Jan 2 at 17:27









      AlexKostAlexKost

      6292621




      6292621
























          2 Answers
          2






          active

          oldest

          votes


















          2














          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.






          share|improve this answer
























          • I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

            – AlexKost
            Jan 6 at 1:24











          • It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

            – Günter Zöchbauer
            Jan 6 at 8:24











          • Apps are as simple as default counter app. Anyways, thanks for your suggestion!

            – AlexKost
            Jan 6 at 12:04











          • You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

            – Günter Zöchbauer
            Jan 6 at 12:27



















          0














          On android studio

          1: Tools > AVD Manager

          2: Edit the virtual device

          3: Show advenced settings

          4: increase internal storage



          internal storage






          share|improve this answer


























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54010649%2ferror-when-trying-to-install-second-flutter-app-on-the-emulator%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            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.






            share|improve this answer
























            • I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

              – AlexKost
              Jan 6 at 1:24











            • It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

              – Günter Zöchbauer
              Jan 6 at 8:24











            • Apps are as simple as default counter app. Anyways, thanks for your suggestion!

              – AlexKost
              Jan 6 at 12:04











            • You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

              – Günter Zöchbauer
              Jan 6 at 12:27
















            2














            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.






            share|improve this answer
























            • I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

              – AlexKost
              Jan 6 at 1:24











            • It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

              – Günter Zöchbauer
              Jan 6 at 8:24











            • Apps are as simple as default counter app. Anyways, thanks for your suggestion!

              – AlexKost
              Jan 6 at 12:04











            • You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

              – Günter Zöchbauer
              Jan 6 at 12:27














            2












            2








            2







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 2 at 17:33









            Günter ZöchbauerGünter Zöchbauer

            334k721010943




            334k721010943













            • I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

              – AlexKost
              Jan 6 at 1:24











            • It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

              – Günter Zöchbauer
              Jan 6 at 8:24











            • Apps are as simple as default counter app. Anyways, thanks for your suggestion!

              – AlexKost
              Jan 6 at 12:04











            • You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

              – Günter Zöchbauer
              Jan 6 at 12:27



















            • I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

              – AlexKost
              Jan 6 at 1:24











            • It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

              – Günter Zöchbauer
              Jan 6 at 8:24











            • Apps are as simple as default counter app. Anyways, thanks for your suggestion!

              – AlexKost
              Jan 6 at 12:04











            • You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

              – Günter Zöchbauer
              Jan 6 at 12:27

















            I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

            – AlexKost
            Jan 6 at 1:24





            I have 2048MB of internal storage for the emulator. Is it not enough for more than one flutter app?

            – AlexKost
            Jan 6 at 1:24













            It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

            – Günter Zöchbauer
            Jan 6 at 8:24





            It should be, but that depends on your app. In debug mode apps easily take 10x the nor,al size.

            – Günter Zöchbauer
            Jan 6 at 8:24













            Apps are as simple as default counter app. Anyways, thanks for your suggestion!

            – AlexKost
            Jan 6 at 12:04





            Apps are as simple as default counter app. Anyways, thanks for your suggestion!

            – AlexKost
            Jan 6 at 12:04













            You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

            – Günter Zöchbauer
            Jan 6 at 12:27





            You can run flutter build apk and check the build directory for debug build output and check the size. It's probably about 70M gor a simple app. So if you have 2G and big parts free then you should be able to install a few. Hard to tell from here what exactly is going on on your system.

            – Günter Zöchbauer
            Jan 6 at 12:27













            0














            On android studio

            1: Tools > AVD Manager

            2: Edit the virtual device

            3: Show advenced settings

            4: increase internal storage



            internal storage






            share|improve this answer






























              0














              On android studio

              1: Tools > AVD Manager

              2: Edit the virtual device

              3: Show advenced settings

              4: increase internal storage



              internal storage






              share|improve this answer




























                0












                0








                0







                On android studio

                1: Tools > AVD Manager

                2: Edit the virtual device

                3: Show advenced settings

                4: increase internal storage



                internal storage






                share|improve this answer















                On android studio

                1: Tools > AVD Manager

                2: Edit the virtual device

                3: Show advenced settings

                4: increase internal storage



                internal storage







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 31 at 17:22

























                answered Jan 31 at 17:11









                CyphontinCyphontin

                913




                913






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54010649%2ferror-when-trying-to-install-second-flutter-app-on-the-emulator%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    MongoDB - Not Authorized To Execute Command

                    How to fix TextFormField cause rebuild widget in Flutter

                    in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith