ProcessException: Process “C:\..\myapp\android\gradlew.bat” exited abnormally:

前端 未结 9 1603
心在旅途
心在旅途 2020-12-20 13:17
ProcessException: Process \"C:\\Users\\User\\Desktop\\Courses\\flutter\\myapp\\android\\gradlew.bat\" exited abnormally:
Exception in thread \"main\" java.lang.Runti         


        
相关标签:
9条回答
  • 2020-12-20 14:03

    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.
    0 讨论(0)
  • 2020-12-20 14:04

    I have solved this issue by setup android project in android studio and android studio shows me error that your kotlin version is not compatible so i upgrade kotlin version.

    ext.kotlin_version:   '1.2.71' ->  '1.3.50'
    

    It started working fine.

    0 讨论(0)
  • 2020-12-20 14:04

    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.

    0 讨论(0)
提交回复
热议问题