Flutter App stuck at “Running Gradle task 'assembleDebug'. SOLUTION

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 124

  • @wiptide
    @wiptide 3 года назад +24

    You have no idea what kind of pinch this issue has put me in and this fixed it. You just got a new sub. Keep up the good work :)

  • @realislam8153
    @realislam8153 Год назад +17

    Use following command ./gradlew clean
    ./gradlew build

  • @jashanjeetsingh5757
    @jashanjeetsingh5757 2 года назад +3

    What to do if I am having the issue in VS code?

  • @pranav_2229
    @pranav_2229 3 года назад +14

    If you got error like gradlew is not recognised use .\gradlew
    And if gradlew built failed try changing name of your folder ( no space and no underscore )

  • @accountantajeet
    @accountantajeet 3 года назад +3

    Bhai hamne ek flutter video apps banaya hai ushme (server xampp aur mysql)
    Tiktok jaisa
    Mere list me bahut sare video hai data base me
    But sirf 15 se 16 video hi play hote hai.
    Agar me ek video 15-16 ke bich ka delet kardu to phir next 17 no ka video play hota hai.
    Koi solution hai kya
    Is error ka

  • @RashcodeAcademy
    @RashcodeAcademy 5 дней назад

    You made my life so much easier so much much from Iran 😍😘😁 Thanks a lot.

  • @StanleySisneros
    @StanleySisneros 2 года назад +3

    Thanks for all your help. Learning flutter now.

  • @youwecan8942
    @youwecan8942 3 года назад +3

    It has taken 1hr 39 min for me to run gradlew clean even I have high-speed wifi connection 😑

  • @hypeethiopia8936
    @hypeethiopia8936 2 года назад +9

    'gradview' is not recognized as an internal or external command,
    operable program or batch file.

    • @enampowers2403
      @enampowers2403 2 года назад +9

      ./gradlew clean an Mac with ./ and on windows without ./

  • @delarammajestic2502
    @delarammajestic2502 3 года назад +4

    Hi friend i typed gradlew clean but this message appeared : java home is not set and no java command could be found in your path ?
    Could you please guide me on that ? I just kniw dart and flutter and i dont know any thing about java .Is installing java sdk compulsory at this stage or there is another solution ?
    I appreciate your answer in advance

  • @guycohen4403
    @guycohen4403 3 года назад +2

    build take a lot of time, it write "." on the terminal

  •  3 года назад +2

    Hello, I have the issue,
    I tried what you said, but if I type gradle clean (or ./gradlew clean or anything) looks like the command is working but no response at all, and I think this would solve my problem If I could clean it. Can you suggest me anything?

  • @dhruvbalasubramanian6933
    @dhruvbalasubramanian6933 2 года назад +1

    running 'flutter clean' broke my program. none of the imports are recognized and a majority of my files are underlined red. how do I undo this?

  • @MarinaPinto79
    @MarinaPinto79 2 года назад

    any ideas on this error?
    Execution failed for task ':app:compileFlutterBuildDebug'.
    > Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • @anefuoche1053
    @anefuoche1053 Год назад

    i am getting this error: Starting a Gradle Daemon, 1 incompatible Daemon could not be reused

  • @vishalshende6281
    @vishalshende6281 2 года назад

    When trying "gradlew clean" it shows "tearm gradlew clean" is not recognised as the name of a cmdlet

  • @RahulRawat-rj8ol
    @RahulRawat-rj8ol 3 года назад +12

    bash: gradlew: command not found

  • @uxell7207
    @uxell7207 3 года назад +1

    not worked, same result. can you help me please?

  • @quratulain9835
    @quratulain9835 2 года назад

    C:\Users\DELL\AndroidStudioProjects>cd android
    The system cannot find the path specified.

  • @jamalazizbeigi4896
    @jamalazizbeigi4896 2 года назад

    When run debug the below error stopped building on emulator, "Task 'assembleDebug' not found in root project 'desk2929'.
    ", Do you have any experience related to it?. I executed all of your mentioned steps in this clip, meanwhile, I have this problem.

  • @sebastianzap99
    @sebastianzap99 Год назад

    Nice, but i dont kwon why i need to do this every time that i need to run my especific project. This only happens with that project :'c

  • @bread9190
    @bread9190 4 месяца назад

    i cant, when i try gradlew clean it says
    gradlew: The term 'gradlew' is not recognized as a name of a cmdlet, function, script file, or executable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Suggestion [3,General]: The command "gradlew" was not found, but does exist in the current location.
    PowerShell does not load commands from the current location by default (see ''Get-Help about_Command_Precedence'').
    If you trust this command, run the following command instead:

    • @AdityaThakurXD
      @AdityaThakurXD  4 месяца назад

      Could you try ./gradlew clean instead? Make sure you first navigate to the Android directory using cd android

  • @be_calm2372
    @be_calm2372 2 года назад

    It says gradlew not recognized as internal or external command,even tho I'm inside android folder

    • @tootahaiba658
      @tootahaiba658 2 года назад +1

      did u know the solution ? i have the same answer >

  • @NabilMO_O
    @NabilMO_O 2 года назад

    Anybody help please i am experiencing this error in android studio runing flutter project>
    Could not locate aapt. Please ensure you have the Android buildtools installed.

  • @muratdadas8236
    @muratdadas8236 2 года назад

    Can you help me pleaseeeee
    Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
    * What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.
    > Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • @janakiramsharma2996
    @janakiramsharma2996 3 года назад +1

    Hey, I am getting an error something like this Exception: Gradle task assembleDebug failed with exit code -1
    Can you please help me out in fixing this issue.

  • @KevinTheGog1
    @KevinTheGog1 3 года назад +1

    When I do gradlew clean it says “fail to build”

    • @chintusharma1
      @chintusharma1 3 года назад

      I too tried it but did not work am in arch Linux
      I followed
      cd app/android
      ./gradlew clean
      ./gradlew create
      flutter clean
      But same error came

    • @PM-od9qm
      @PM-od9qm 3 года назад

      Try .\gradlew clean
      And then after that
      .\ gradlew build

  • @hembromjohn
    @hembromjohn 11 месяцев назад

    It is not recognizing my commands , what to do?? E:\A ++ skills\my_first_flutter_project\android> gradlew clean
    gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was .... Any help would be appreciated. Thanks

  • @Nikita-iq1ks
    @Nikita-iq1ks 3 года назад +1

    Iam getting the system cannot find path specified error in terminal

    • @AdityaThakurXD
      @AdityaThakurXD  3 года назад +1

      Make sure you've specified the correct path in the Terminal. Here are the steps again for reference:
      Open your flutter Project directory.
      Change directory to android directory in your flutter project directory cd android
      Clean gradle ./gradlew clean
      Build gradle ./gradlew build
      Now run your flutter project.

  • @fernandogoncalves1891
    @fernandogoncalves1891 Год назад

    Where:
    Script 'C:\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 912
    * What went wrong:
    A problem occurred evaluating root project 'android'.
    > A problem occurred configuring project ':app'.
    > Could not create task ':app:packLibsflutterBuildDebug'.
    > No signature of method: org.gradle.api.tasks.bundling.Jar.destinationDir() is applicable for argument types: (File) values: [C:\Flutter\build\app\intermediates\flutter\debug]

  • @GauravKumar-ui7ow
    @GauravKumar-ui7ow 2 года назад +1

    Gradlew clean shows .....the term gradlew is not recognized bla bla bla...💥💥💥💥💥

  • @digitalarsenal668
    @digitalarsenal668 3 года назад +3

    Hello Aditya, I'm getting an error while building APK .
    Gensnapshot exited with code --somecode
    ..
    It happens everytime I try to build my apk. Can you help me with this?

  • @abhishekprasad7134
    @abhishekprasad7134 3 года назад

    It worked but I have to do it every time I wanted to run
    Is there any permanent solution

  • @Gravemind2016
    @Gravemind2016 Год назад +1

    Man, you saved so much time for me, thank you

  • @alexpolymath
    @alexpolymath 3 года назад +1

    zsh: command not found: gradlew

  • @guycohen4403
    @guycohen4403 3 года назад +2

    gradlew clean take a lot of time,

  • @sscharanbandi9058
    @sscharanbandi9058 3 года назад

    hey bro im getting The system cannot find the path specified. when i run flutter doctor --android-licenses please help me

    • @hamzaqureshi5436
      @hamzaqureshi5436 3 года назад

      you need to update your android sdk and then check the option "Android SDK Command-Line Tool" boom problem solved

    • @sscharanbandi9058
      @sscharanbandi9058 3 года назад

      @@hamzaqureshi5436 No broo

  • @matthiasimegi8211
    @matthiasimegi8211 2 года назад +3

    Thanks a lot Man, you've just saved a career

  • @aidaaqilahmohdzin5542
    @aidaaqilahmohdzin5542 3 года назад

    thank you sir. This helps me a lot. But do you know how to solve if flutter run stuck at installing apk?

  • @21CSC30NRABIYAFATHIMA
    @21CSC30NRABIYAFATHIMA 9 месяцев назад

    can you help to resolve this error in vs code

  • @mrigankshekhardwivedi9585
    @mrigankshekhardwivedi9585 Год назад

    now it is stuck on running pod install

  • @vhonbautista7157
    @vhonbautista7157 2 года назад

    need help, how about on vs code?

  • @ProKingof
    @ProKingof Месяц назад

    Thank you very much :v. Its work

  • @sultanabdulrrahman5319
    @sultanabdulrrahman5319 2 года назад

    Still having problem sir.

  • @B88_o
    @B88_o 4 месяца назад

    The term 'gradlew' is not recognized as the name of a cmdlet,

  • @shivam_fitvibes
    @shivam_fitvibes Год назад

    Flutter clean is not working

  • @fernandogoncalves1891
    @fernandogoncalves1891 Год назад

    Do you know how to solve this error

  • @JuanPerez-vv5lk
    @JuanPerez-vv5lk 3 года назад

    what about if you are using Visual Code ? anyone ?

  • @HS-bt2gz
    @HS-bt2gz Год назад

    Thank you for your help! I was able to solve the problem :)

  • @renukushwaha3599
    @renukushwaha3599 3 года назад

    this change deleted all my essential files also

  • @vinayaktumbagi87
    @vinayaktumbagi87 3 года назад +2

    Much needed video....Thanks man👍

  • @AwesomeTutes
    @AwesomeTutes Год назад

    This worked, thank you

  • @fenixmunozgarcia2021
    @fenixmunozgarcia2021 6 месяцев назад

    It did not work for me.

  • @sorianojohnclarencel.2081
    @sorianojohnclarencel.2081 3 года назад +2

    It worked! Thank you!

  • @QassimoveTV
    @QassimoveTV 2 года назад

    at 01:24 you can go back by using : cd..

  • @Praxi_
    @Praxi_ 2 года назад

    thank you so much very helpful

  • @zora853
    @zora853 3 года назад +1

    Still stuck

    • @AdityaThakurXD
      @AdityaThakurXD  3 года назад +1

      If you're still facing the issue, I'd recommend the following steps:
      Upgrade Flutter/Dart to the latest version.
      To update gradle files, follow the steps in the following answer by opening a project that was previously running.
      Link: stackoverflow.com/questions/59516408/flutter-app-stuck-at-running-gradle-task-assembledebug/63920645#63920645

  • @shi6676
    @shi6676 Год назад +1

    Try . /gradlew clean and . /gradlew build if gradlew clean and gradlew build is not working

  • @ahmedbelloula9268
    @ahmedbelloula9268 Месяц назад

    very helpful

  • @doresekala3186
    @doresekala3186 Год назад

    thank you my friend

  • @DhruvParekh_
    @DhruvParekh_ 2 года назад

    it is showing so many errors.

  • @sharcodes
    @sharcodes 2 года назад

    Thanks a Lot bro
    It Really worked for me

  • @naqibshahzad5304
    @naqibshahzad5304 3 года назад

    thanks for solving my problem a

  • @saulmisaelcollikumul378
    @saulmisaelcollikumul378 2 года назад +1

    Thank you!, Nice video

  • @lulufraaije9540
    @lulufraaije9540 Год назад

    thanks mate! it worked

  • @ekosetiawan_indo
    @ekosetiawan_indo 2 года назад +1

    thanks for saving my night🔥🔥🔥

  • @آموزششطرنجبهشکلحرفهیی

    not worked

  • @layla7609
    @layla7609 2 года назад

    It helped me a lottt, thaaanks!

  • @mikeowino8732
    @mikeowino8732 3 года назад +1

    Thank you so much

  • @sheralikhtk5200
    @sheralikhtk5200 Год назад

    Thank you soo much... you made my day

  • @kevinmichael94
    @kevinmichael94 Год назад

    Great job, muy bien

  • @gaziimran6525
    @gaziimran6525 6 месяцев назад

    tx it worked

  • @ardikanurhafid5595
    @ardikanurhafid5595 Год назад

    its work thank you

  • @owenfranke7857
    @owenfranke7857 2 года назад

    THANK YOU!!

  • @mostafahany3926
    @mostafahany3926 Год назад

    thanks my pro😍😍😍

  • @ehsanhasin
    @ehsanhasin 2 года назад

    thank you

  • @lokmanabd3515
    @lokmanabd3515 3 года назад

    thaaaaaank youuuuuuuuuuuuuuuuuuuuuu

  • @samirkaneria90
    @samirkaneria90 3 года назад

    Thanks man it worked :)

  • @janammaharjan2699
    @janammaharjan2699 2 года назад

    Thanking you

  • @snipermarkk7581
    @snipermarkk7581 3 года назад +1

    thanks a lot it worked for me

  • @prashlovessamosa
    @prashlovessamosa Год назад

    Thanks

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 5 месяцев назад

    Hey man.

  • @mojtabaranjbar75
    @mojtabaranjbar75 3 года назад

    thanks bro

  • @mohammadkiani7297
    @mohammadkiani7297 2 года назад

    😍😍😍 tanks

  • @linkuzi4
    @linkuzi4 2 года назад

    te amo

  • @arabelrachman3035
    @arabelrachman3035 2 года назад

    i love you so much

  • @chouaibaminechouache5196
    @chouaibaminechouache5196 2 года назад

    thnx

  • @yarko4766
    @yarko4766 3 года назад +1

    Thanks man

  • @anb4351
    @anb4351 3 года назад

    easy way, just turn off windows firewall temporarily.

  • @gaziimran6525
    @gaziimran6525 6 месяцев назад

    wll actually with this command ./gradlew clean build

  • @yandroperu
    @yandroperu Год назад

    what about if you are using Visual Code ? anyone ?