-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated test_bundle.dart file having import issue #1814
Comments
What command did you use? Please post the exact invocation. |
I am having the same problem when running Error:Target kernel_snapshot failed: Exception
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (42.2s) #1 DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7) #2 AndroidTestBackend.build (package:patrol_cli/src/android/android_test_backend.dart:42:5) #3 TestCommand._build (package:patrol_cli/src/commands/test.dart:234:7) #4 TestCommand.run (package:patrol_cli/src/commands/test.dart:167:5) #5 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #6 PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:321:18) #7 PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:265:18) #8 patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:77:20) #9 main (file:///C:/Users/dalen/AppData/Local/Pub/Cache/hosted/pub.dev/patrol_cli-2.2.1/bin/main.dart:6:20) Patrol version: 2.3.1 Patrol Doctor:Patrol CLI version: 2.2.1 Program adb found in C:\Users\dalen\AppData\Local\Android\Sdk\platform-tools\adb.exe Env var $ANDROID_HOME set to C:\Users\dalen\AppData\Local\Android\SdkFlutter doctor:[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.2428], locale de-DE) |
Oi @C-8, how are you doing? Try to modify the begin of your target path to:
Also try to run the |
This worked! |
This comment was marked as spam.
This comment was marked as spam.
I started to experience the same problem after migration from Flutter 3.19 to Flutter 3.22.
Logs
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (20.1s) Flutter versionFlutter 3.22.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5dcb86f68f (13 days ago) • 2024-05-09 07:39:20 -0500 Engine • revision f6344b75dc Tools • Dart 3.4.0 • DevTools 2.34.3Patrol doctorPatrol CLI version: 2.7.0 Flutter command: flutter Flutter 3.22.0 • channel stable Android: • Program adb found in /opt/homebrew/bin/adb • Program xcodebuild found in /usr/bin/xcodebuild • Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller |
@Wreos I don't think the issue you described is related to this one. Yours seems to be caused by this regression in the latest Flutter version |
Steps to reproduce
I just make a demo as the document said
but having an issue with generated import don't know why
Actual results
generated file need to be error less
Logs
Logs
Patrol version
patrol: ^2.3.1
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: