-
Notifications
You must be signed in to change notification settings - Fork 149
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
Unable to run the Android integration tests #1661
Comments
Hi @vlazdra, just to confirm:
It looks a bit like this issue, but not exactly - you can try the workaround written there as well. |
Hi @jBorkowska 🙌 Yes, I've added the Now that you mentioned it, I tried to build the app as per usual and it's no longer building with the same issue as described in the ticket. I'f I remove the patrol dependency inside the pubspec.yaml the project builds normally (which is to be expected I guess). Also I already did the whole remove the pub-spec cache dir, still nothing. |
Hi @vlazdra! Can you share your build.gradle files? Or maybe your Kotlin version specified in top-level build.gradle file? I'm thinking of something like a Kotlin version mismatch since those files that have unresolved references in your log are just generated proto contracts and they should just work 🤷 |
Hi @mateuszwojtczak thanks for the reply! 🙌 The kotlin version is 1.8.21 Here are the build gradle files: Top level build.gradle
And this is the app level build gradle: App level build.gradle
|
Hi @vlazdra, try these commands (line by line, run from your project's root directory):
|
I am able to build the project now, I think the only thing I did was change the version of patrol in the meantime. Not sure if it was just the version bump or actually removing the entire cache. :/ Closing the ticket. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Steps to reproduce
I'm trying to run a very simple Android integration test, but can't seam to pass the build process of the actual APK. The log output has been added bellow. I'm trying to run it on a physical device if that's of any value.
This is the command I'm trying to use:
patrol test --debug --flavor development --target integration_test/app_test.dart --verbose
Note: Unfortunately I can't share the project source code as it's private and proprietary.
Regarding the setup of the Android part I've added this as per the documentation to the
defaultConfig
:I've added this as well to the
android
blockAs well as the dependencies:
Actual results
The build fails with the logs as described bellow.
Logs
Logs
Patrol version
patrol: 2.2.3
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: