Проблема с флаттером появляется после обновления до android studio 3.6.1 и вызывает отладку или сборку APK флаттера для устройства android или эмулятора Android не работает. Я пробовал много других решений, но не работал, таких как переключение между основным и стабильным каналом, переустановка плагина dart SDK, переустановка плагина флаттера.
PS эта проблема также появляется в последней версии VS Code.
Шаги для воспроизведения
- Открыть любой проект Flutter.
- Эмулятор отладки Strat для Android / устройства.
- Отладка запуск занимает много времени без обновления вывода.
Ожидаемые результаты: Развертывание проекта флаттера на устройстве Android и эмуляторе Android sam как эмуляторе iOS.
Фактические результаты:
Launching lib/main.dart on BLA L29 in debug mode...
Running Gradle task 'assembleDebug'...
это должно быть построение проекта
Бревна
flutter run --verbose
[ +34 ms] executing: [/Users/raddah/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +62 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ ] executing: [/Users/raddah/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +183 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ +5 ms] v1.12.13+hotfix.8-0-g0b8abb4724
[ +11 ms] executing: [/Users/raddah/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +14 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/Users/raddah/flutter/] git ls-remote --get-url origin
[ +15 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +73 ms] executing: [/Users/raddah/flutter/] git rev-parse --abbrev-ref HEAD
[ +16 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +7 ms] executing: sw_vers -productName
[ +18 ms] Exit code 0 from: sw_vers -productName
[ ] Mac OS X
[ ] executing: sw_vers -productVersion
[ +21 ms] Exit code 0 from: sw_vers -productVersion
[ ] 10.14.6
[ ] executing: sw_vers -buildVersion
[ +18 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 18G3020
[ +39 ms] executing: /usr/bin/xcode-select --print-path
[ +15 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[ ] /Applications/Xcode.app/Contents/Developer
[ +1 ms] executing: /usr/bin/xcodebuild -version
[ +284 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[ ] Xcode 11.3.1
Build version 11C504
[ +92 ms] executing: /Users/raddah/Library/Android/sdk/platform-tools/adb devices -l
[ +14 ms] Exit code 0 from: /Users/raddah/Library/Android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
AQH7N17C08015371 device usb:336592896X product:BLA-L29 model:BLA_L29 device:HWBLA transport_id:1
[ +30 ms] executing: /Users/raddah/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h
[ +59 ms] /usr/bin/xcrun simctl list --json devices
[ +169 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
[ +5 ms] /Users/raddah/Library/Android/sdk/platform-tools/adb -s AQH7N17C08015371 shell getprop
[ +94 ms] ro.hardware = kirin970
[ ] ro.build.characteristics = default
[ +4 ms] BLA L29 • AQH7N17C08015371 • android-arm64 • Android 9 (API 28)
[ ] iPhone 11 Pro Max • 457CCDB7-E1C1-4CF6-A17F-9F60B48E8E0A • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
[ +16 ms] "flutter run" took 908ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:289:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:590:11)
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:515:33)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#5 _rootRun (dart:async/zone.dart:1126:13)
#6 _CustomZone.run (dart:async/zone.dart:1023:19)
#7 _runZoned (dart:async/zone.dart:1518:10)
#8 runZoned (dart:async/zone.dart:1465:12)
#9 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
#11 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#14 _rootRun (dart:async/zone.dart:1126:13)
#15 _CustomZone.run (dart:async/zone.dart:1023:19)
#16 _runZoned (dart:async/zone.dart:1518:10)
#17 runZoned (dart:async/zone.dart:1465:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
#20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21 new Future.sync (dart:async/future.dart:224:31)
#22 CommandRunner.run (package:args/command_runner.dart:112:14)
#23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
#24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
#25 _rootRun (dart:async/zone.dart:1126:13)
#26 _CustomZone.run (dart:async/zone.dart:1023:19)
#27 _runZoned (dart:async/zone.dart:1518:10)
#28 runZoned (dart:async/zone.dart:1502:12)
#29 run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#30 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#31 _rootRun (dart:async/zone.dart:1126:13)
#32 _CustomZone.run (dart:async/zone.dart:1023:19)
#33 _runZoned (dart:async/zone.dart:1518:10)
#34 runZoned (dart:async/zone.dart:1465:12)
#35 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#36 runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#37 run (package:flutter_tools/runner.dart:50:10)
#38 main (package:flutter_tools/executable.dart:65:9)
#39 main (file:///Users/raddah/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
flutter analyze
Analyzing idonor...
No issues found! (ran in 7.9s)
flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.14.6 18G3020, locale en-SA)
• Flutter version 1.12.13+hotfix.8 at /Users/raddah/flutter
• Framework revision 0b8abb4724 (5 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/raddah/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-R, 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_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 32.0.3
• Dart plugin version 183.5153.38
[✓] VS Code (version 1.43.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1
[✓] Connected device (2 available)
• BLA L29 • AQH7N17C08015371 • android-arm64 • Android 9 (API 28)
• iPhone 11 Pro Max • 457CCDB7-E1C1-4CF6-A17F-9F60B48E8E0A • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
• No issues found!