-
Notifications
You must be signed in to change notification settings - Fork 150
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
patrol test - Gradle build failed with code 1 #1472
Comments
Hi, please post logs with |
Hi, Today I tried next:
Problems are again protobuf (duplicates). According to #1260 (comment) you removed it because you don't need it. But it seems that you didn't removed it. And it seems that this makes a huge problem. |
Please post full logs with |
Log when run patrol test or log when I try to run my app after I installed patrol? |
`You're using Patrol CLI 2.0, which has breaking changes. Verbose mode enabled. More logs will be printed.
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (7.6s) See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it. And this is my test: void main() {
}); |
@ds3031 Please post such long logs in a ` tag . Also, formatting of your code is broken, making it hard to read: To answer your problems this time: it looks like you're using a very old version of Android Gradle plugin (v4):
Patrol requires Android Gradle Plugin v7 (most modern plugins require it as well). Please upgrade AGP version. |
Closing since this is not an issue with Patrol. |
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
Did all of this https://patrol.leancode.co/getting-started/native
and this is my simple test for our proprietary app:
`
import 'package:flutter_test/flutter_test.dart';
import 'package:patrol/patrol.dart';
import 'package:test/main_dev.dart' as app;
void main() {
patrolTest('testttt', (PatrolTester $) async {
app.main();
);
}
`
Run patrol test --target integration_test/testttt_test.dart --flavor dev, gives me that error in log
Actual results
Gradle build failed with code 1
Logs
Logs
Patrol version
patrol: ^2.0.2
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: