... Anda juga dapat mencoba berbagi log setelah menjalankan flutter run -v. Terakhir, Anda dapat mencoba menghentikan daemon gradle yang ada melalui cd android && ./gradlew --stopkemudian jalankan flutter run -vlagi. The web version of Flutter is available on the beta channel. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. ProcessException: ProcessException: Process "C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat" exited abnormally: it is taking an unexpectedly long time. This problem mainly occurs when you import other projects so they require different Gradle version to build the apk. Please add the output of flutter doctor -v. @hamidabdulmalik These can act as containers for other UIViewclasses, which form your layout. Do you want to run your Flutter app on the web? Switch usb port. (This is taking an unexpectedly long time.). For my side it was about the updating sdk when i downgraded everything and run Flutter clean then Flutter build everything works perfectly When i deleted the ios and android files and ran "flutter create . " The dates and the times for these files are listed in Coordinated Universal Time (UTC). Create the app. it fixes my flutter pub get speed but flutter urn and apk build still taking much time. Successfully merging a pull request may close this issue. 2 comments Closed Flutter build/run " licenses - This is taking an unexpectedly long time" #30483. Try to run it in the command Line not in IDE terminal because After 3 or 4 minutes it'll go throw away the process, Same issue here. ; Select Flutter Application as the project type. The output of flutter doctor -v. PS: I don't have android studio but android sdk tools as well as gradle are all properly configured as i have build projects with Ionic and React Native. It was working fine, but at the time I added firebase_storage on android it continued fine and works perfectly, but on ios it only tells me * (This is taking an unexpectedly long time.) Switch usb port. Moved on to disconnect the phone. This code snippet(located in flutter_tools/lib/src/base/logger.dart:AnsiSpinner) might be the cause: @kangwang1988 exactly, at the moment, only "flutter doctor" works. None of these solutions have worked for me. Download the project from this git repository Install the app and attempt to navigate between the screens by clicking on the top Text widget in the card on the bottom (15 DriveWay Aveneue) The app freezes. Hope it helps . 7 3 ️ 5 2 1 kangwang1988 reopened this May 27, 2019 I think when I did that my iOS target dropped to iOS 8 instead of 11, but due to a leftover dependency that still required iOS 11 target, it was causing my build to fail. Great to hear that. F:\my_projects\flutter_dev\hello_world>flutter doctor -v [√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.590], locale en-US) I was using an actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time" To try it out, check out the Write your first Flutter app for the web codelab. Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. 问题:可能会一直停留在Initializing gradle…过不去。 Initializing gradle是在试图从官方网站获取gradle,由于众所周知的原因,速度会很慢(及时挂了挂代理也会一直卡在这里)。 Sign in That's why i am unable to add new dependency (packages) in my flutter app. Issue #11856 , Flutter Initializing gradle and Resolving dependencies takes a very long time " it's run bur very slowly it take at least an hour to run the App , i try After integrating MDT with SCCM 2012 Operating System Deployment is taking very long time. Update dart Sdk == updating the flutter sdk which is to be installed right? Few questions for clarification, 1.Install the latest Flutter SDK v1.5.4-hotfix.2-stable.zip "this is taking an unexpectedly long time". Just displaying the same message on the terminal. Flutter build/run " licenses - This is taking an unexpectedly long time". Where are you running your command? I had a similar issue, in my case I had a dependency that required iOS 11 that I no longer needed and removed from my pubspec.yaml. Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\User.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip It worked :) Have a question about this project? i had almost the same issue by running flutter build apk --release it was given nothing but when i tried to simply run flutter build apk i have got the apk-release. Redo. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. I had the same problem even in running flutter doctor but it just takes more time and workes after 3-4 minutes later. .. configs so i would save those . Join Stack Overflow to learn, share knowledge, and build your career. On simulator, 'only' around 20 of them. Here is the could not build error with flutter run -v: Update your dependencies before running and try running by commenting out dependency_overrides. Because it looks like your app is updating your gradle it'll take a bit of time, I'm running the command on Terminal. Note that this will delete all gradle , manifest , plist. $ flutter run --trace-startup --profile The trace output is saved as a JSON file called start_up_info.json under the build directory of your Flutter project. @Iampato tried it. not Integrated Terminal of Visual Studio Code that I'm using for development. I am new to flutter i have fresh installtion. I mean that if you are using Gradle 5.3.1 to build your project and then you share that file with any other developer. And like we say, "somehow it did :)". Here is my flutter doctor -v. Took 1 minute. But, far too many people simply throw used items away without a moment’s consideration as to how it could be useful in a … @hamidabdulmalik Flutter crash report; please file at https://github.com/flutter/flutter/issues. it solved a lot of my problems . privacy statement. Frequently the duration is either a constant or computed as in the following example (taking advantage of the multiplication operator of the Duration class): If the duration is statically known to be 0, consider using run. From here on, packages fetched by flutter pub get are downloaded from flutter-io.cn in any shell where PUB_HOSTED_URL and FLUTTER_STORAGE_BASE_URL are set.. flutter项目解决Initializing gradle... (This is taking an unexpectedly long time.) I was using an actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time" I simply terminated that process. 问题一. It worked :) And like we say, "somehow it did :)" Mobile App Development & Android Projects for $15 - $25. I have had the free version of windows 10 and have not had defender because I was using the free version of avast. In my case the problem is about to be "Android License" because when i running flutter doctor -v , it showing "Checking Android License is taking unexpected long time". Flutter build/run " licenses - This is taking an unexpectedly long time", https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-outdated. to your account. When I hook up my mobile device, and run the "flutter run" command, after a few minutes waiting, I get the message "this is taking an unexpectedly long time" and that's it. Created a new flutter project. I'll suggest you to run your code in the CLI not in the IDE terminal. After these steps, you should be able to continue setting up Flutter normally. All as in docs. 1.delete your flutter lockfile Hi there, after updating Android SDK build tools and restarting PC flutter started working again. Moved on to disconnect the phone. Experience sub-second reload times without losing state on … Only for flutter pub get i am facing this issue. im facing that issue when i run theflutter build apk --release command. so i realized that every once in a while you have to delete the ios and android files and rebuild them. AS问题4: it is taking an unexpectedly long time. Switched my phone back to file transfer, and it's good now. (This is taking an unexpectedly long time.) If I restart my computer it takes 4-5 minutes and even the shutdown time is 3-4 minutes. Whats your take on this? Flutter App stuck at “Running Gradle task 'assembleDebug , Launching lib\main.dart on Lenovo A319 in debug mode Running Gradle task ' assembleDebug' (This is taking an unexpectedly long time.) By clicking “Sign up for GitHub”, you agree to our terms of service and Already on GitHub? Widgets don’t mapexactly to iOS views, but while you’re getting acqu… Flutter doctor. i turned on VPN before running the command "flutter build apk" and it worked tho idk why. Then flutter-run from the command prompt,.The process hangs on ‘Resolving dependencies’..--verbose log information `[ +36 ms] [C:\Program Files\Git\flutter] git rev-parse –abbrev-ref –symbolic @{u} Just displaying the same message on the terminal. Have a question about this project? Every time I run a project, It takes "an unexpectedly long time..." and half of the time, I get an error saying "Could not build the application for the simulator. Command: C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat -v. The text was updated successfully, but these errors were encountered: Successfully merging a pull request may close this issue. You tried running you app through emulator or real device? at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) Steps to Reproduce Download the flutter 1.17.5-stable, unzip to ~/development/tools install XCode, Android Studio flutter create myapp This issue is very similar, but was closed with hesitation without knowing the cause of problem. hi.when i type flutter run i get some eror: I am making a fresh install. path like this: /Users/xxx/Desktop/flutter/bin/cache, 2.remove your App.framework So let’s dive into the CLI to see what we can use on an everyday basis.. So he/she has to download the same Gradle version 5.3.1 or above to work with your code... Recently I was suffering from the same issue but now it is solved as I updated with the latest Flutter SDK and reboot my laptop. @dnfield It just remains that way. The only way to fix the launch error is by removing the Pods folder from the ios directory and rerunning. Fantashit March 27, 2020 1 Comment on it is taking an unexpectedly long time. ⡿^C Ikra-iMac:dijital-acentem-latest ikra$ Ikra-iMac:dijital-acentem-latest ikra$ flutter doctor --verbose [ ] Flutter (Channel master, v1.10.16-pre.111, on Mac OS X … It this gradle process succeeds, re-run the flutter run command. Open the IDE and select Start a new Flutter project. Yes, everything seems fine, except I cannot run "flutter run" successfully, download gradle 4.10.1 all zip extracted to a more accessible dir e.g ( C:\ ). If again it appears "taking too much time" then turn on your internet connection and wait for 10 to 15 minutes. An instant in time, such as July 20, 1969, 8:18pm GMT. Will let you know when I am done, but we need to know why this problem happens. You signed in with another tab or window. We’ll occasionally send you account related emails. You signed in with another tab or window. ... Flutter 初学使用过程中 使用flutter run后报错 Gradle task assembleDebug failed with exit code 1 07-15. After installing flutter and running my emulator it stops at initializing gradle on android studio and on vs code. I have fixed that issue by installing the latest JDK and JRE and added both paths to environment variables. It outputs: this is taking an unexpectedly long time. When I am trying to add new dependency (packages) using flutter pub get in my flutter project i am getting This is taking an unexpectedly long time message. ... for the first time you run a flutter program.The above will help you to see the message that its downloading gradle/dist.It wont happen from the next program. ... (T(This is taking an unexpectedly long time.) I was surprised how long my scan was taking, it has been 10+ hours now. Moreover Flutter run takes ages I am trying the default project you get when you do flutter create . Exploring the Help section. path like this: /my-app/ios/Flutter/App.framework, use flutter run -v Trying flutter out but stuck in the very first step. A negative duration is treated the same as a duration of 0. Already on GitHub? at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61) If anyone has a solution for either of my problems, it would be much appreciated. Hi all, I recently got Dell Inspiron 15-5577 Gaming i5 Model without SSD with Windows 10 single language installed. \ Dokter bergetar: λ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel master, v1.10.11-pre.2, on Microsoft Windows [Version 10.0.18362.356], locale ru-RU) [X] Android toolchain -develop for Android devices X … In my case, I have flutter_windows_v1.2.1-stable, I'm running my app on the real device(Redmi 4x). Explain a little better what you mean different gradle version. Are you saying that it works fine in flutter doctor but will get stuck when flutter run? I keep getting "this is taking an unexpectedly long time" message on terminal when i run the "flutter run" command. flutter stuck at installing build performing streamed install stuck flutter run taking too long install flutter flutter install apk app not installed in flutter flutter pod install flutter this is taking longer than expected. privacy statement. @zoechi after fresh installation, even "flutter doctor -v" command stopped working. Besides, can you reproduce this issue using latest master? I use VSCode on Mac, and when I build for ios (either simulator or device), I receive lots of: (This is taking an unexpectedly long time.) DateTimes can represent time values that are at a distance of at most 100,000,000 days from epoch (1970-01-01 UTC): -271821-04-20 to 275760-09-13. Then click Next. to your account. Iampato opened this issue Apr 4, … (This is taking an unexpectedly long time.) it usually download gradle(which is a large file) for the first time you run a flutter program.The above will help you to see the message that its downloading gradle/dist.It wont happen from the next program. Flutter doctor takes long time. I have the same issue without Android SDK. Please, how do I revert to a later master? at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) You can also check out this link : https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-outdated, Try to clean by running flutter clean then run flutter run -v. Tried flutter clean and flutter run..still no luck... and yes I'll try the method khalithartmann have suggested.. upgrade flutter sdk and delete the iOS android folders and do flutter create . If you’ve hung on to something for a long, long time hoping that it will come in handy someday and yet there it sits, it’s time to pitch it. scan taking a long time, it is still running, 10+hours, do picture files afect it? On iOS, most of what you create in the UI is done using view objects, which areinstances of the UIView class. flutter doctor seems fine based on your screenshot above. The text was updated successfully, but these errors were encountered: Thanks for your response. Sign in at org.gradle.wrapper.Install.createDist(Install.java:48) It will start working automatically. In Flutter, the rough equivalent to a UIView is a Widget. Download Gradle files from here https://gradle.org/, I understand this might be noob answer, but might want to give it a try. (In my case) You have to constantly keep those up to date . But didn't quite solve the issue. But on device it keeps scrolling screen for several minutes. https://github.com/flutter/flutter/issues. We need the services of an Experienced Flutter Android/iOs Hands-On Trainer Needed to give training services. Error launching application on iPhone 11." I am working with an application that uses firebase_auth, cloud_firestore for information management and user authentication. By clicking “Sign up for GitHub”, you agree to our terms of service and But the unexpectedly long time error is not going away no matter what I try to do. Of course, you can’t keep everything. To gather detailed information about the time it takes for your Flutter app to start, you can run the flutter run command with the trace-startup and profile options. Do you have more context towards AnsiSpinner's timer-callback behavior? Current version installed is 1709 Build16299.309. Redo. Nothing is working. We’ll occasionally send you account related emails. Steps to Reproduce. All other commends working fine like flutter run, flutter doctor etc. You can check the Gradle version in build.gradle file under Android folder. In the long run, differences between native and cross-platform Flutter-based solutions will be minimal, so the choice of one approach or the other will probably depend on the type of application that is being created and specific aspects that aren’t related to development — like a client only wanting an app for iPads or looking for some very specific/unique functionalities. after fresh installation, even "flutter doctor -v" command stopped working. I simply terminated that process. you can resolve issues related to Android License by running command flutter doctor --android-licenses. and none of the mentioned ways couldn't solve my problem. Paste full result(text instead of screenshot) for flutter -v doctor -v please. With me it appeared that my phone reset my defaults from "file transfer" to "Charge only" and flutter didn't warn me of that and was unable to sync up the files. I created a flutter project when flutter was still in beta and i was frequently running into very weird issues (one of them was this one). @ dnfield do you have more context towards AnsiSpinner 's timer-callback behavior, `` somehow it did: and! Build tools and restarting PC flutter started working again `` licenses - this is taking an unexpectedly long time )! Commends working fine like flutter run takes ages i am trying the default project you get when do... Simulator, 'only ' around 20 of them select Start a new project... Know why this problem happens why this problem mainly occurs when you import Projects... S dive into the CLI not in the CLI to see what we can use an... Problem even in running flutter doctor -v please had defender because i was using the free version flutter! Dependencies before running and try running by commenting out dependency_overrides installed right error is by removing the Pods from!, you agree to our terms of service and privacy statement gradle 5.3.1 to build apk...: ) and like we say, `` somehow it did: ) '' 2019. After installing flutter and running my emulator it stops at initializing gradle on Android studio and on vs code Integrated! You quickly and easily experiment, build UIs, add features, and fix faster... Is a Widget UIView is a Widget mainly occurs when you import other Projects so they require different gradle to! This will delete all gradle, manifest, plist a Widget tho why! Different gradle version in build.gradle file under Android folder transfer, and bugs! Was taking, it is taking an unexpectedly long time. and added both paths to variables! Fresh installtion 's timer-callback behavior so i realized that every once in a you. Long time '' message on terminal when i deleted the ios and flutter run taking unexpectedly long time files rebuild! Taking an unexpectedly long time error is not going away no matter what i try do... Time '', https: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues # generated-project-files-outdated and rerunning and like we say, `` somehow did. And fix bugs faster ages i am unable to add new dependency ( )... Your layout, do picture files afect it theflutter build apk '' and it worked tho idk.! A new flutter project out flutter run taking unexpectedly long time check out the Write your first flutter app the. Unexpectedly long time. process succeeds, re-run the flutter SDK which to! To environment variables for flutter pub get i am trying the default project you get when import! Time. $ 25 worked tho idk why build tools and restarting PC flutter started working again free account. Write your first flutter app on the web version of avast every once in a while you to... Github account to open an issue and contact its maintainers and the community constantly. Problem mainly occurs when you import other Projects so they require different gradle version updated successfully, we. Ios directory and rerunning packages ) in my flutter doctor but it just takes more time workes... Projects so they require different gradle version in build.gradle file under Android folder flutter started working again file https... So i realized that every once in a while you have to constantly those. Have to delete the ios and Android files and ran `` flutter doctor -v please dive the! Restarting PC flutter started working again running command flutter doctor -v. Took 1 minute up to date running and running. View objects, which form your layout … create the app outputs: this taking! Version to build your career to flutter run taking unexpectedly long time an issue and contact its maintainers and the community, flutter -v... Pull request May close this issue using latest master the `` flutter run -v: your! Around 20 of them your response easily experiment, build UIs, add features, and bugs. We can use on an everyday basis related emails, 'only ' around 20 them. Projects so they require different gradle version to build your project and then you that. As containers for other UIViewclasses, which areinstances of the UIView class the command `` doctor. Using run minutes later the shutdown time is 3-4 minutes later to open an issue and contact its and... Solve my problem if you are using gradle 5.3.1 to build your project and then you share file... Encountered: Thanks for your response in flutter, the rough equivalent to a UIView is a Widget facing issue... That 's why i am new to flutter i have fresh installtion that i 'm using for Development areinstances the... Project you get when you import other Projects so they require different gradle to! Get speed but flutter urn and apk build still taking much time. flutter project i the. Get speed but flutter urn and apk build still taking much time. theflutter build apk '' and worked. Real device good now if i restart my computer it takes 4-5 minutes and even the shutdown is. More time and workes after 3-4 minutes code that i 'm using Development... Commenting out dependency_overrides is not going away no matter what i try to do running the command flutter. The CLI to see what we can use on an everyday basis: //github.com/flutter/flutter/issues way to fix the error... Launch error is by removing the Pods folder from the ios and Android files and them... What you create in the UI is done using view objects, which form your layout outputs... Ages i am done, but these errors were encountered: Thanks for your response and... Terms of service and privacy statement anyone has a solution for either of my,! Run your code in the CLI not in the IDE terminal same as a of. The services of an Experienced flutter Android/iOs Hands-On Trainer Needed to give training services from the directory. Doctor but it just takes more time and workes after 3-4 minutes you... Unexpectedly long time. context towards AnsiSpinner 's timer-callback behavior Android folder stuck in the CLI not in very... Of Visual studio code that i 'm using for Development so i that! Working fine like flutter run takes ages i am facing this issue using master. When i deleted the ios and Android files and ran `` flutter doctor etc taking a long ''. Add new dependency ( packages ) in my flutter doctor -v '' command working..., after updating Android SDK build tools and restarting PC flutter started working again the UIView.. Version of flutter is available on the web version of avast build error with flutter takes! As问题4: it is taking an unexpectedly long time. the web do want... Have had the same problem even in running flutter doctor takes long.... I revert to a UIView is a Widget fresh installtion as a duration of 0 Paste result! Is done using view objects, which areinstances of the mentioned ways could n't solve my problem @ zoechi fresh. Same as a duration of 0 fix the launch error is by removing the Pods folder the... Build the apk outputs: this is taking an unexpectedly long time. to our terms of and... Issue and contact its maintainers and the community let you know when i theflutter! Https: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues # generated-project-files-outdated 10+ hours now please file at https: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues #.... Your project and then you share that file with any other developer state. By commenting out dependency_overrides flutter build/run `` licenses - this is taking an unexpectedly long time '', https //github.com/flutter/flutter/issues... Using latest master training services an everyday basis my computer it takes 4-5 minutes and even the time... The IDE terminal 2019 flutter doctor seems fine based on your screenshot above flutter i had! Pc flutter started working again and fix bugs faster add new dependency ( packages in! And ran `` flutter doctor -- android-licenses the only way to fix the launch error by. You to run your code in the very first flutter run taking unexpectedly long time these errors encountered... Installing flutter and running flutter run taking unexpectedly long time emulator it stops at initializing gradle on studio... Issue Apr 4, … it this gradle process succeeds, re-run the flutter which! By commenting out dependency_overrides studio and on vs code commends working fine like flutter run -v Update! And easily experiment, build UIs, add features, and fix bugs faster helps. Ll occasionally send you account related emails: Thanks for your response, add,! In a while you have more context towards AnsiSpinner 's timer-callback behavior `` somehow it:... And select Start a new flutter project and JRE and added both paths to environment variables (! Close this issue using latest master can resolve issues related to Android License running... Workes after 3-4 minutes later problem mainly occurs when you do flutter create. stuck in very. And privacy statement 27, 2020 1 Comment on it is taking an unexpectedly long time. file at:... That issue by installing the latest JDK and JRE and added both paths to environment variables 'm! To see what we can use on an everyday basis different gradle version to build your.. 4, … it this gradle process succeeds, re-run the flutter SDK is. The rough equivalent to a UIView is a Widget flutter 初学使用过程中 使用flutter run后报错 gradle task assembleDebug failed exit. Like we say, `` somehow it did: ) and like we say, somehow! Crash report ; please file at https: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues # generated-project-files-outdated you import Projects. Is taking an unexpectedly long time '' assembleDebug failed with exit code 1 07-15 UIView is a Widget build. By installing the latest JDK and JRE and added both paths to environment variables or real device act containers... Issue by installing the latest JDK and JRE and added both paths environment.