Open aadizorro opened 4 years ago
could be related https://github.com/flutter/flutter/issues/49507
Hi @TahaTesser , as per suggestion in #49507, i ran "flutter pub cache repair --verbose", i am getting below error at the end,
MSG : Reinstalled 90 packages. pub finished with exit code 1
@TahaTesser did you get a chance to look at this issue?
Getting the same error after deleting .gradle/caches folder
flutter run --verbose
[+1300 ms] > Configure project :app
[ ] WARNING: The option setting 'android.enableR8=true' is deprecated.
[ ] It will be removed in version 5.0 of the Android Gradle plugin.
[ ] You will no longer be able to disable R8
[+1786 ms] > Task :app:compileFlutterBuildDebug FAILED
[ +1 ms] FAILURE: Build failed with an exception.
[ +2 ms] * Where:
[ ] Script '/Users/lielvdh/Developer/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 882
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] > BaseFlutterTask$_buildBundle_closure2
[ ] * Try:
[ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 2s
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings
[ ] 1 actionable task: 1 executed
[ +427 ms] Running Gradle task 'assembleDebug'... (completed in 3.7s)
[+5388 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +1 ms] "flutter run" took 14,980ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:569:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:723:18)
#3 _rootRunUnary (dart:async/zone.dart:1192:38)
#4 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#11 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1192:38)
#13 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#18 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#19 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#20 AndroidDevice.isLocalEmulator (package:flutter_tools/src/android/android_device.dart)
#21 _rootRunUnary (dart:async/zone.dart:1192:38)
#22 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#23 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#25 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#26 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#27 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#28 _rootRun (dart:async/zone.dart:1184:13)
#29 _CustomZone.run (dart:async/zone.dart:1077:19)
#30 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#31 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#32 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#34 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#35 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
flutter doctor -v
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale en-IL)
• Flutter version 1.17.5 at /Users/lielvdh/Developer/flutter
• Framework revision 8af6b2f038 (5 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/lielvdh/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.1
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[!] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
! Doctor found issues in 1 category.
I too faced the same error when I build default counter app. I ran "flutter pub cache repair --verbose", but that did not fix the error. Help me.
I have created a new Flutter project in Android Studio. while doing "flutter run" in project directory, i am getting below error.
**D:\SandBox\Flutter_workspace\flutter_app>flutter run The system cannot find the path specified. The system cannot find the path specified. Launching lib\main.dart on Redmi 4 in debug mode... The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified.
FAILURE: Build failed with an exception.
Where: Script 'D:\Flutter-SDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 6s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 7.1s Exception: Gradle task assembleDebug failed with exit code 1**
Steps to Reproduce
Logs
Output of flutter run --verbose :
Output for flutter doctor -v
Output of gradlew build --stacktrace inside PROJECTDIR\android
Kindly help with this as this is my first time with flutter, gradle as well as Android Studio.