ProcessException: Process “C:..myappandroidgradlew.bat” exited abnormally:












7















ProcessException: Process "C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:UsersUser.gradlewrapperdistsgradle-4.10.2-all9fahxiiecdb76a5g3aw9oi8rvgradle-4.10.2-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat -v


When i run my flutter app from vs code it shows this error, what is wrong here?










share|improve this question



























    7















    ProcessException: Process "C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat" exited abnormally:
    Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:UsersUser.gradlewrapperdistsgradle-4.10.2-all9fahxiiecdb76a5g3aw9oi8rvgradle-4.10.2-all.zip
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
    at org.gradle.wrapper.Install.createDist(Install.java:48)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    Command: C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat -v


    When i run my flutter app from vs code it shows this error, what is wrong here?










    share|improve this question

























      7












      7








      7


      1






      ProcessException: Process "C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat" exited abnormally:
      Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:UsersUser.gradlewrapperdistsgradle-4.10.2-all9fahxiiecdb76a5g3aw9oi8rvgradle-4.10.2-all.zip
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
      at org.gradle.wrapper.Install.createDist(Install.java:48)
      at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
      at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      Command: C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat -v


      When i run my flutter app from vs code it shows this error, what is wrong here?










      share|improve this question














      ProcessException: Process "C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat" exited abnormally:
      Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:UsersUser.gradlewrapperdistsgradle-4.10.2-all9fahxiiecdb76a5g3aw9oi8rvgradle-4.10.2-all.zip
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
      at org.gradle.wrapper.Install.createDist(Install.java:48)
      at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
      at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      Command: C:UsersUserDesktopCoursesfluttermyappandroidgradlew.bat -v


      When i run my flutter app from vs code it shows this error, what is wrong here?







      dart flutter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 12:33









      Henok TesfayeHenok Tesfaye

      526317




      526317
























          3 Answers
          3






          active

          oldest

          votes


















          4














          Here are the steps that I followed to solve the problem.




          1. run flutter run on the command prompt given by your OS(not by the vs code shell).


          2. make sure you have a good internet connection.







          share|improve this answer

































            1














            This might help if you have license problem.




            1. run flutter doctor on command prompt. If you get this:
              ! Some Android licenses not accepted.

            2. run flutter doctor --android-licenses and accept all the licenses.

            3. now run flutter run and you are good to go.






            share|improve this answer































              1














              For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.



              Try downloading it and installing it manually.




              1. Download the latest Gradle version.

              2. Extract the ZIP file to a location on your PC, i.e C:Gradle

              3. add the environment variable GRADLE_HOME to point to this location.

              4. add GRADLE_HOME/bin to your PATH environment variable.






              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%2f53300358%2fprocessexception-process-c-myapp-android-gradlew-bat-exited-abnormally%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                4














                Here are the steps that I followed to solve the problem.




                1. run flutter run on the command prompt given by your OS(not by the vs code shell).


                2. make sure you have a good internet connection.







                share|improve this answer






























                  4














                  Here are the steps that I followed to solve the problem.




                  1. run flutter run on the command prompt given by your OS(not by the vs code shell).


                  2. make sure you have a good internet connection.







                  share|improve this answer




























                    4












                    4








                    4







                    Here are the steps that I followed to solve the problem.




                    1. run flutter run on the command prompt given by your OS(not by the vs code shell).


                    2. make sure you have a good internet connection.







                    share|improve this answer















                    Here are the steps that I followed to solve the problem.




                    1. run flutter run on the command prompt given by your OS(not by the vs code shell).


                    2. make sure you have a good internet connection.








                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 26 '18 at 6:57









                    Günter Zöchbauer

                    322k69958895




                    322k69958895










                    answered Nov 26 '18 at 6:52









                    Henok TesfayeHenok Tesfaye

                    526317




                    526317

























                        1














                        This might help if you have license problem.




                        1. run flutter doctor on command prompt. If you get this:
                          ! Some Android licenses not accepted.

                        2. run flutter doctor --android-licenses and accept all the licenses.

                        3. now run flutter run and you are good to go.






                        share|improve this answer




























                          1














                          This might help if you have license problem.




                          1. run flutter doctor on command prompt. If you get this:
                            ! Some Android licenses not accepted.

                          2. run flutter doctor --android-licenses and accept all the licenses.

                          3. now run flutter run and you are good to go.






                          share|improve this answer


























                            1












                            1








                            1







                            This might help if you have license problem.




                            1. run flutter doctor on command prompt. If you get this:
                              ! Some Android licenses not accepted.

                            2. run flutter doctor --android-licenses and accept all the licenses.

                            3. now run flutter run and you are good to go.






                            share|improve this answer













                            This might help if you have license problem.




                            1. run flutter doctor on command prompt. If you get this:
                              ! Some Android licenses not accepted.

                            2. run flutter doctor --android-licenses and accept all the licenses.

                            3. now run flutter run and you are good to go.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 22 '18 at 18:30









                            Rajneesh kumar SinghRajneesh kumar Singh

                            112




                            112























                                1














                                For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.



                                Try downloading it and installing it manually.




                                1. Download the latest Gradle version.

                                2. Extract the ZIP file to a location on your PC, i.e C:Gradle

                                3. add the environment variable GRADLE_HOME to point to this location.

                                4. add GRADLE_HOME/bin to your PATH environment variable.






                                share|improve this answer






























                                  1














                                  For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.



                                  Try downloading it and installing it manually.




                                  1. Download the latest Gradle version.

                                  2. Extract the ZIP file to a location on your PC, i.e C:Gradle

                                  3. add the environment variable GRADLE_HOME to point to this location.

                                  4. add GRADLE_HOME/bin to your PATH environment variable.






                                  share|improve this answer




























                                    1












                                    1








                                    1







                                    For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.



                                    Try downloading it and installing it manually.




                                    1. Download the latest Gradle version.

                                    2. Extract the ZIP file to a location on your PC, i.e C:Gradle

                                    3. add the environment variable GRADLE_HOME to point to this location.

                                    4. add GRADLE_HOME/bin to your PATH environment variable.






                                    share|improve this answer















                                    For me, the problem was that my internet connection could not download the Gradle binaries while initializing Gradle. I suspect it's because I'm behind a proxy.



                                    Try downloading it and installing it manually.




                                    1. Download the latest Gradle version.

                                    2. Extract the ZIP file to a location on your PC, i.e C:Gradle

                                    3. add the environment variable GRADLE_HOME to point to this location.

                                    4. add GRADLE_HOME/bin to your PATH environment variable.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Jan 14 at 7:15

























                                    answered Jan 14 at 6:53









                                    Koby DouekKoby Douek

                                    11.6k143762




                                    11.6k143762






























                                        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%2f53300358%2fprocessexception-process-c-myapp-android-gradlew-bat-exited-abnormally%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

                                        Xamarin.iOS Cant Deploy on Iphone

                                        Glorious Revolution

                                        Dulmage-Mendelsohn matrix decomposition in Python